change_settings_code

This commit is contained in:
mohammad
2024-11-26 16:47:07 +03:00
parent f24a32ec7b
commit bb50918f04
44 changed files with 1384 additions and 4290 deletions

View File

@ -6,9 +6,9 @@ import 'package:syncrow_app/features/devices/bloc/sos_bloc/sos_event.dart';
import 'package:syncrow_app/features/devices/bloc/sos_bloc/sos_state.dart';
import 'package:syncrow_app/features/devices/model/device_model.dart';
import 'package:syncrow_app/features/devices/model/sos_model.dart';
import 'package:syncrow_app/features/devices/view/device_settings/settings_page.dart';
import 'package:syncrow_app/features/devices/view/widgets/sos/sos_alarm_management_page.dart';
import 'package:syncrow_app/features/devices/view/widgets/sos/sos_records_screen.dart';
import 'package:syncrow_app/features/devices/view/widgets/sos/sos_settings.dart';
import 'package:syncrow_app/features/shared_widgets/battery_bar.dart';
import 'package:syncrow_app/features/shared_widgets/default_container.dart';
import 'package:syncrow_app/features/shared_widgets/default_scaffold.dart';
@ -43,15 +43,15 @@ class SosScreen extends StatelessWidget {
actions: [
InkWell(
onTap: () async {
Navigator.of(context).push(
var val = await Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => SosSettings(device: device!),
builder: (context) => SettingsPage(device: device!),
),
);
// if (val == null) {
// sensor.add(SosInitialDeviseInfo());
// sensor.add(const SosInitial());
// }
if (val == null) {
sensor.add(SosInitialDeviseInfo());
sensor.add(const SosInitial());
}
},
child: SvgPicture.asset(Assets.assetsIconsSettings),
),