From 2d53f2cdd37dbf7ded2d32eb0bb142053d3d31e6 Mon Sep 17 00:00:00 2001 From: anhtunz Date: Tue, 17 Jun 2025 16:43:45 +0700 Subject: [PATCH] Update Logging data Try-catch function --- android/app/src/main/AndroidManifest.xml | 1 + devtools_options.yaml | 3 + lib/bloc/bell_bloc.dart | 1 - lib/bloc/device_detail_bloc.dart | 94 +- lib/bloc/device_logs_bloc.dart | 49 +- .../device_notification_settings_bloc.dart | 1 - lib/bloc/device_update_bloc.dart | 274 +++-- lib/bloc/devices_manager_bloc.dart | 17 +- lib/bloc/group_detail_bloc.dart | 173 +-- lib/bloc/home_bloc.dart | 33 +- lib/bloc/inter_family_bloc.dart | 56 +- lib/bloc/login_bloc.dart | 17 +- lib/bloc/main_bloc.dart | 33 +- lib/bloc/map_bloc.dart | 4 +- lib/bloc/settings_bloc.dart | 22 +- lib/feature/bell/bell_screen.dart | 27 +- .../devices/add_new_device_widget.dart | 37 +- lib/feature/devices/delete_device_widget.dart | 28 +- .../device_detail/device_detail_screen.dart | 1030 ++++++++--------- lib/feature/home/home_screen.dart | 215 +--- lib/feature/home/shared/alert_card.dart | 77 +- lib/feature/home/shared/warning_card.dart | 257 ++-- .../group_detail/group_detail_screen.dart | 9 +- .../inter_family/groups/groups_screen.dart | 4 +- .../inter_family/groups/groups_widget.dart | 5 +- .../inter_family/inter_family_widget.dart | 4 +- lib/feature/main/main_screen.dart | 43 +- lib/feature/map/map_screen.dart | 42 +- .../device_notification_settings_screen.dart | 21 +- .../settings/profile/profile_screen.dart | 114 +- lib/feature/settings/settings_screen.dart | 17 +- lib/product/extension/context_extension.dart | 13 + lib/product/network/network_manager.dart | 40 +- lib/product/services/api_services.dart | 51 +- .../shared/shared_rocket_container.dart | 26 + lib/product/theme/app_theme_dark.dart | 1 + lib/product/theme/app_theme_light.dart | 1 + lib/product/utils/app_logger_utils.dart | 39 + lib/product/utils/device_utils.dart | 2 +- pubspec.lock | 8 + pubspec.yaml | 1 + 41 files changed, 1591 insertions(+), 1299 deletions(-) create mode 100644 devtools_options.yaml create mode 100644 lib/product/shared/shared_rocket_container.dart create mode 100644 lib/product/utils/app_logger_utils.dart diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 2ff0127..e987e98 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -36,6 +36,7 @@ android:windowSoftInputMode="adjustResize" android:showWhenLocked="true" android:turnScreenOn="true" + android:enableOnBackInvokedCallback="true" android:exported="true">