Skip to content

Screen Reader Only

Use sr-only to visually hide an element while keeping it accessible to screen readers. Use not-sr-only to undo this behavior and make the element visible again.

Style('...', children: [
Icon(Icons.settings),
Style('sr-only', child: Text('Settings')),
])
Style('...', children: [
Icon(Icons.settings),
Style('not-sr-only', child: Text('Settings')),
])
ClassDescription
sr-onlyVisually hide the element but keep it accessible to screen readers
not-sr-onlyUndo sr-only and make the element visible