Commit 70a1ac3d authored by akari's avatar akari

fix: 修复

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