fix bugs on create password

This commit is contained in:
mohammad
2024-06-30 23:19:00 +03:00
parent 53c33187f4
commit baae756acc

View File

@ -146,21 +146,17 @@ class SmartDoorBloc extends Bloc<SmartDoorEvent, SmartDoorState> {
);
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,
),