implemented comprehensive accessibility (A11y) support across the app
This commit is contained in:
@@ -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