further improved accessibility across the application and add tooltips to action buttons
This commit is contained in:
@@ -43,6 +43,8 @@ class HolidaysView extends StatelessWidget {
|
||||
onPressed: showDisclaimer,
|
||||
),
|
||||
PopupMenuButton<bool>(
|
||||
tooltip:
|
||||
'Vergangene Ferien ${bloc.showPastHolidays() ? 'ausblenden' : 'anzeigen'}',
|
||||
initialValue: bloc.showPastHolidays(),
|
||||
icon: const Icon(Icons.history),
|
||||
itemBuilder: (context) => [true, false]
|
||||
@@ -82,9 +84,7 @@ class HolidaysView extends StatelessWidget {
|
||||
text: 'Keine Schulferien verfügbar',
|
||||
);
|
||||
}
|
||||
return ListViewUtil.fromList<McHoliday>(
|
||||
holidays,
|
||||
(holiday) {
|
||||
return ListViewUtil.fromList<McHoliday>(holidays, (holiday) {
|
||||
String holidayYear() {
|
||||
final startYear = holiday.startDate.year;
|
||||
final endYear = holiday.endDate.year;
|
||||
@@ -94,9 +94,7 @@ class HolidaysView extends StatelessWidget {
|
||||
|
||||
return ListTile(
|
||||
leading: const CenteredLeading(Icon(Icons.calendar_month)),
|
||||
title: Text(
|
||||
'${holiday.longName} ${holidayYear()}',
|
||||
),
|
||||
title: Text('${holiday.longName} ${holidayYear()}'),
|
||||
subtitle: Text(
|
||||
'${holiday.startDate.formatDate()} - ${holiday.endDate.formatDate()}',
|
||||
),
|
||||
@@ -148,8 +146,7 @@ class HolidaysView extends StatelessWidget {
|
||||
),
|
||||
trailing: const Icon(Icons.arrow_right),
|
||||
);
|
||||
},
|
||||
);
|
||||
});
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user