Skip to content

Commit

Permalink
Remove date picker lower limits
Browse files Browse the repository at this point in the history
  • Loading branch information
emavgl committed Jul 7, 2024
1 parent 0dc58ad commit d0fde7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/records/records-page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class TabRecordsState extends State<TabRecords> {
int currentYear = DateTime.now().year;
DateTime? dateTime = await showMonthPicker(
context: context,
firstDate: DateTime(2018, 1),
lastDate: DateTime(currentYear + 1, 12),
initialDate: currentDate,
locale: I18n.locale,
Expand All @@ -103,7 +102,7 @@ class TabRecordsState extends State<TabRecords> {
DateTime currentDate = DateTime.now();
DateTime initialDate = DateTime(currentDate.year, 1);
DateTime lastDate = DateTime(currentDate.year + 1, 1);
DateTime firstDate = DateTime(2018, currentDate.month);
DateTime firstDate = DateTime(1950, currentDate.month);
DateTime? yearPicked = await showYearPicker(
firstDate: firstDate,
lastDate: lastDate,
Expand Down

0 comments on commit d0fde7e

Please sign in to comment.