Commit 70a1ac3d authored by akari's avatar akari

fix: 修复

parent c701cce4
...@@ -190,9 +190,8 @@ class MonitoringIndexState extends Equatable { ...@@ -190,9 +190,8 @@ class MonitoringIndexState extends Equatable {
clearMqttDeviceSn ? null : mqttDeviceSn ?? this.mqttDeviceSn, clearMqttDeviceSn ? null : mqttDeviceSn ?? this.mqttDeviceSn,
cabinCameraSn: cabinCameraSn ?? this.cabinCameraSn, cabinCameraSn: cabinCameraSn ?? this.cabinCameraSn,
cabinWifiPwd: cabinWifiPwd ?? this.cabinWifiPwd, cabinWifiPwd: cabinWifiPwd ?? this.cabinWifiPwd,
selectedAlert: clearSelectedAlert selectedAlert:
? null clearSelectedAlert ? null : selectedAlert ?? this.selectedAlert,
: selectedAlert ?? this.selectedAlert,
); );
} }
......
...@@ -8,7 +8,6 @@ import 'package:laki_icu_app/enums/video_stream_mode_enum.dart'; ...@@ -8,7 +8,6 @@ import 'package:laki_icu_app/enums/video_stream_mode_enum.dart';
import 'package:laki_icu_app/models/bo/monitoring_bo.dart'; import 'package:laki_icu_app/models/bo/monitoring_bo.dart';
import 'package:laki_icu_app/utils/event_bus.dart'; import 'package:laki_icu_app/utils/event_bus.dart';
import 'cubit/monitoring_index_cubit.dart'; import 'cubit/monitoring_index_cubit.dart';
import 'cubit/monitoring_index_state.dart'; import 'cubit/monitoring_index_state.dart';
import 'widgets/bluetooth_bind_dialog.dart'; import 'widgets/bluetooth_bind_dialog.dart';
...@@ -41,6 +40,7 @@ class MonitoringIndexContent extends StatefulWidget { ...@@ -41,6 +40,7 @@ class MonitoringIndexContent extends StatefulWidget {
class _MonitoringIndexContentState extends State<MonitoringIndexContent> { class _MonitoringIndexContentState extends State<MonitoringIndexContent> {
late final MonitoringIndexCubit _monitoringIndexCubit; late final MonitoringIndexCubit _monitoringIndexCubit;
StreamSubscription<OpenBluetoothScanEvent>? _bluetoothScanEventSub; StreamSubscription<OpenBluetoothScanEvent>? _bluetoothScanEventSub;
/// 正在弹出框展示的告警,为空表示当前没有弹窗 /// 正在弹出框展示的告警,为空表示当前没有弹窗
AlertInfoBO? _currentDialogAlert; AlertInfoBO? _currentDialogAlert;
...@@ -107,6 +107,7 @@ class _MonitoringIndexContentState extends State<MonitoringIndexContent> { ...@@ -107,6 +107,7 @@ class _MonitoringIndexContentState extends State<MonitoringIndexContent> {
flex: 26, flex: 26,
child: MonitoringPetInfoCard( child: MonitoringPetInfoCard(
patientInfo: state.patientInfo, patientInfo: state.patientInfo,
currentCareLevel: state.currentCareLevel,
onExit: () => _monitoringIndexCubit.clearPatientInfo(), onExit: () => _monitoringIndexCubit.clearPatientInfo(),
onBindPet: () => _monitoringIndexCubit.setTestPatientInfo(), onBindPet: () => _monitoringIndexCubit.setTestPatientInfo(),
), ),
...@@ -187,9 +188,10 @@ class _MonitoringIndexContentState extends State<MonitoringIndexContent> { ...@@ -187,9 +188,10 @@ class _MonitoringIndexContentState extends State<MonitoringIndexContent> {
child: Container( child: Container(
width: 388.w, width: 388.w,
height: 62.h, height: 62.h,
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: DecorationImage( image: DecorationImage(
image: AssetImage('lib/assets/monitoring/title_bg_spacewalk.png'), image: AssetImage(
'lib/assets/monitoring/title_bg_spacewalk.png'),
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), ),
......
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