Skip to content

Commit

Permalink
Merge pull request #108 from QuantumPhysique/issue100
Browse files Browse the repository at this point in the history
Increase first possible date to maximum of dart epoche (1970), #100
  • Loading branch information
braniii committed Jul 1, 2024
2 parents 6e6f9f7 + 6fe7376 commit a3da6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/widget/addWeightDialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Future<bool> 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) {
Expand Down

0 comments on commit a3da6f6

Please sign in to comment.