File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,14 @@ class HeaderRow extends StatelessWidget {
4545 Provider .of <MonthUpDownPageProvider >(context);
4646 final List <Widget > mainWidgets = isMonthSelector
4747 ? < Widget > [
48- //TODO transform this into a button
49- GestureDetector (
50- onTap: onSelectYear,
48+ TextButton (
49+ onPressed: onSelectYear,
50+ style: const ButtonStyle (
51+ visualDensity: VisualDensity .compact,
52+ padding: WidgetStatePropertyAll (EdgeInsets .symmetric (horizontal: 12 ,vertical: 4 )),
53+ tapTargetSize: MaterialTapTargetSize .shrinkWrap,
54+ minimumSize: WidgetStatePropertyAll (Size (0 , 0 )),
55+ ),
5156 child: Text (
5257 DateFormat .y (localeString)
5358 .format (DateTime (monthProvider.pageLimit.upLimit)),
@@ -84,7 +89,7 @@ class HeaderRow extends StatelessWidget {
8489 textScaler: scaler,
8590 ),
8691 Text (
87- '- ' ,
92+ ' - ' ,
8893 style: headline5,
8994 textScaler: scaler,
9095 ),
You can’t perform that action at this time.
0 commit comments