mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-15 01:35:25 +00:00
change timer picker theme color
This commit is contained in:
@ -79,6 +79,16 @@ class ScheduleDialogHelper {
|
|||||||
context: context,
|
context: context,
|
||||||
initialTime:
|
initialTime:
|
||||||
state.selectedTime ?? TimeOfDay.now(),
|
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) {
|
if (time != null) {
|
||||||
bloc.add(UpdateSelectedTimeEvent(time));
|
bloc.add(UpdateSelectedTimeEvent(time));
|
||||||
|
Reference in New Issue
Block a user