Include current year in quick date picker

This commit is contained in:
exelix11 2025-10-04 12:39:38 +00:00 committed by Brandon Wees
parent 374ca7d356
commit 2c29697b55

View file

@ -37,7 +37,7 @@ class QuickDatePicker extends HookWidget {
return _monthListTile("Last 9 months", 9);
} else {
final now = DateTime.now();
final years = index - 3;
final years = index - 4;
final year = now.year - years;
return ListTile(
title: Text("In $year"),