From baae756acc2fe42dbeb61d4bb78722f8f5e6f873 Mon Sep 17 00:00:00 2001 From: mohammad Date: Sun, 30 Jun 2024 23:19:00 +0300 Subject: [PATCH] fix bugs on create password --- .../bloc/smart_door_bloc/smart_door_bloc.dart | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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, ),