Skip to content

Commit

Permalink
Make TimePicker initialTime the already selected time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas-Sander committed Feb 22, 2024
1 parent 4d265ac commit 7072545
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7072545

Please sign in to comment.