Refactor routine_view_card.dart to adjust the size of the CircularProgressIndicator

Fix routine popup
Update wall_presence_sensor.dart to handle null selectedOperationName
This commit is contained in:
mohammad
2025-04-07 16:42:44 +03:00
parent 6bd9fb7e4e
commit a56f4e488e
2 changed files with 3 additions and 5 deletions

View File

@ -161,12 +161,10 @@ class _CreateNewRoutinesDialogState extends State<CreateNewRoutinesDialog> {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Center( Center(
child: Center(
child: CircularProgressIndicator( child: CircularProgressIndicator(
color: ColorsManager.primaryColor, color: ColorsManager.primaryColor,
), ),
), ),
),
], ],
), ),
), ),

View File

@ -170,7 +170,7 @@ class _WallPresenceSensorState extends State<WallPresenceSensor> {
orElse: () => DeviceFunctionData( orElse: () => DeviceFunctionData(
entityId: '', entityId: '',
functionCode: selectedFunction, functionCode: selectedFunction,
operationName: state.selectedOperationName!, operationName: state.selectedOperationName ?? '',
value: null, value: null,
), ),
); );