implemented comprehensive accessibility (A11y) support across the app
This commit is contained in:
1 parent
8274dd46cd
commit
478f0ff20b
46 files changed
+590
-226
No files matched your search
@@ -277,13 +277,22 @@ class _PushStatusBodyState extends State<_PushStatusBody>
|
||||
Widget _stateIcon(PushCheck state, ThemeData theme) {
|
||||
switch (state) {
|
||||
case PushCheck.ok:
|
||||
return const Icon(Icons.check_circle_outline, color: Colors.green);
|
||||
return const Icon(
|
||||
Icons.check_circle_outline,
|
||||
color: Colors.green,
|
||||
semanticLabel: 'In Ordnung',
|
||||
);
|
||||
case PushCheck.fail:
|
||||
return Icon(Icons.cancel_outlined, color: theme.colorScheme.error);
|
||||
return Icon(
|
||||
Icons.cancel_outlined,
|
||||
color: theme.colorScheme.error,
|
||||
semanticLabel: 'Fehler',
|
||||
);
|
||||
case PushCheck.unknown:
|
||||
return Icon(
|
||||
Icons.remove_circle_outline,
|
||||
color: theme.colorScheme.onSurfaceVariant,
|
||||
semanticLabel: 'Unbekannt',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user