From 7072545db22884e36723687f98244e499e715784 Mon Sep 17 00:00:00 2001 From: Jonas Sander <29028262+Jonas-Sander@users.noreply.github.com> Date: Thu, 22 Feb 2024 16:51:51 +0100 Subject: [PATCH] Make TimePicker initialTime the already selected time. --- .../timetable_add_event/timetable_add_event_dialog.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/timetable/timetable_add_event/timetable_add_event_dialog.dart b/app/lib/timetable/timetable_add_event/timetable_add_event_dialog.dart index 157f05a5b..69e1b2388 100644 --- a/app/lib/timetable/timetable_add_event/timetable_add_event_dialog.dart +++ b/app/lib/timetable/timetable_add_event/timetable_add_event_dialog.dart @@ -499,7 +499,7 @@ class _DateAndTimeTile extends StatelessWidget { } else { picked = await showTimePicker( context: context, - initialTime: TimeOfDay.fromDateTime(clock.now()), + initialTime: time.toTimeOfDay(), ); } if (picked != null) {