change timer picker theme color

This commit is contained in:
ashrafzarkanisala
2024-09-23 09:22:32 +03:00
parent 0c530e9ea6
commit 6e3ad984e1

View File

@ -79,6 +79,16 @@ class ScheduleDialogHelper {
context: context,
initialTime:
state.selectedTime ?? TimeOfDay.now(),
builder: (context, child) {
return Theme(
data: Theme.of(context).copyWith(
colorScheme: const ColorScheme.light(
primary: ColorsManager.primaryColor,
),
),
child: child!,
);
},
);
if (time != null) {
bloc.add(UpdateSelectedTimeEvent(time));