Commit 08cc8142 authored by 张宏's avatar 张宏

22222

parent 83539172
......@@ -41,6 +41,7 @@ class MonitoringIndexContent extends StatefulWidget {
class _MonitoringIndexContentState extends State<MonitoringIndexContent> {
late final MonitoringIndexCubit _monitoringIndexCubit;
StreamSubscription<OpenBluetoothScanEvent>? _bluetoothScanEventSub;
bool _isAlertDialogShowing = false;
@override
void initState() {
......@@ -62,7 +63,8 @@ class _MonitoringIndexContentState extends State<MonitoringIndexContent> {
Widget build(BuildContext context) {
return BlocListener<MonitoringIndexCubit, MonitoringIndexState>(
listener: (context, state) {
if (state.selectedAlert != null) {
if (state.selectedAlert != null && !_isAlertDialogShowing) {
_isAlertDialogShowing = true;
_showAlertDetailDialog(state.selectedAlert!);
}
},
......@@ -265,6 +267,7 @@ class _MonitoringIndexContentState extends State<MonitoringIndexContent> {
child: MonitoringAlertDetailDialog(alert: alert),
),
).then((_) {
_isAlertDialogShowing = false;
_monitoringIndexCubit.clearSelectedAlert();
});
}
......
......@@ -50,12 +50,12 @@ class MonitoringAlertDetailDialog extends StatelessWidget {
return Container(
padding: EdgeInsets.fromLTRB(40.w, 24.h, 40.w, 24.h),
decoration: const BoxDecoration(
border: Border(
bottom: BorderSide(
color: Color(0xFF00D4FF),
width: 2,
),
),
// border: Border(
// bottom: BorderSide(
// color: Color(0xFF00D4FF),
// width: 1,
// ),
// ),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
......
......@@ -88,9 +88,10 @@ class VideoPlayerWidget extends StatelessWidget {
),
),
// 模式切换按钮(右下角倒数第二个位置)
if (onToggleMode != null && !isSwitchingMode)
_buildToggleModeButton(),
// // 模式切换按钮(右下角倒数第二个位置)
// if (onToggleMode != null && !isSwitchingMode)
// _buildToggleModeButton(),
// 全屏按钮(右下角最后一个位置)
if (_isVideoShowing) _buildFullscreenButton(context),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment