diff --git a/lib/features/devices/bloc/smart_door_bloc/smart_door_bloc.dart b/lib/features/devices/bloc/smart_door_bloc/smart_door_bloc.dart index 6ea1507..e5f7391 100644 --- a/lib/features/devices/bloc/smart_door_bloc/smart_door_bloc.dart +++ b/lib/features/devices/bloc/smart_door_bloc/smart_door_bloc.dart @@ -146,21 +146,17 @@ class SmartDoorBloc extends Bloc { ); if (picked != null) { final TimeOfDay? timePicked = - await showTimePicker( + await showTimePicker( context: event.context, - initialTime: TimeOfDay(hour: 10, minute: 47), + initialTime: TimeOfDay.now(), builder: (context, child) { return Theme( - data: ThemeData.light().copyWith( - colorScheme: ColorScheme.light( - // change the border color + colorScheme: const ColorScheme.light( primary: ColorsManager.primaryColor, - // change the text color onSurface: Colors.black, ), - // button colors - buttonTheme: ButtonThemeData( + buttonTheme: const ButtonThemeData( colorScheme: ColorScheme.light( primary: Colors.green, ),