From a56f4e488e8da0039e0359c9d853de5b7fccdb0e Mon Sep 17 00:00:00 2001 From: mohammad Date: Mon, 7 Apr 2025 16:42:44 +0300 Subject: [PATCH] Refactor routine_view_card.dart to adjust the size of the CircularProgressIndicator Fix routine popup Update wall_presence_sensor.dart to handle null selectedOperationName --- .../routines/create_new_routines/create_new_routines.dart | 6 ++---- .../routine_dialogs/wall_sensor/wall_presence_sensor.dart | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/pages/routines/create_new_routines/create_new_routines.dart b/lib/pages/routines/create_new_routines/create_new_routines.dart index 4900af9b..0542f888 100644 --- a/lib/pages/routines/create_new_routines/create_new_routines.dart +++ b/lib/pages/routines/create_new_routines/create_new_routines.dart @@ -161,10 +161,8 @@ class _CreateNewRoutinesDialogState extends State { crossAxisAlignment: CrossAxisAlignment.center, children: [ Center( - child: Center( - child: CircularProgressIndicator( - color: ColorsManager.primaryColor, - ), + child: CircularProgressIndicator( + color: ColorsManager.primaryColor, ), ), ], diff --git a/lib/pages/routines/widgets/routine_dialogs/wall_sensor/wall_presence_sensor.dart b/lib/pages/routines/widgets/routine_dialogs/wall_sensor/wall_presence_sensor.dart index e065080f..b7733511 100644 --- a/lib/pages/routines/widgets/routine_dialogs/wall_sensor/wall_presence_sensor.dart +++ b/lib/pages/routines/widgets/routine_dialogs/wall_sensor/wall_presence_sensor.dart @@ -170,7 +170,7 @@ class _WallPresenceSensorState extends State { orElse: () => DeviceFunctionData( entityId: '', functionCode: selectedFunction, - operationName: state.selectedOperationName!, + operationName: state.selectedOperationName ?? '', value: null, ), );