From 6fe73768eb8f2c003a6b9453cbff911b5793aeae Mon Sep 17 00:00:00 2001 From: braniii Date: Mon, 1 Jul 2024 21:20:57 +0200 Subject: [PATCH] Increase first possible date to maximum of dart epoche (1970), #100 --- app/lib/widget/addWeightDialog.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/widget/addWeightDialog.dart b/app/lib/widget/addWeightDialog.dart index d011222..14e0858 100644 --- a/app/lib/widget/addWeightDialog.dart +++ b/app/lib/widget/addWeightDialog.dart @@ -72,7 +72,7 @@ Future showAddWeightDialog({ final DateTime? date = await showDatePicker( context: context, initialDate: currentDate, - firstDate: DateTime(currentDate.year - 2), + firstDate: DateTime.fromMillisecondsSinceEpoch(0), lastDate: DateTime.now(), ); if (date == null) {