<p>Accessibility features are accomplished by Semantics library, which handles the semantics tree. Your app semantics tree is like your apps widgets tree. But instead of containing widgets, it contains semantics nodes the define Accessibility hierarchy passed to the operating system. So when you need to adjust the accessibility experience, you'll probably just use an API with the word "semanticsin it. We also need a semantic label to say something clear. For example, the screen reader cannot read 30 km/h as '30 kilometers per hour'. See how it's accomplished in the below examples. Here are few examples,</p> <p>color: rgb(212, 212, 212); background-color: rgb(30, 30, 30); font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;]( Text(color: #ce9178;]('30 km/h',semanticsLabel: color: #ce9178;]('30 Kilometers per hour') Icon(Icons.library_books, semanticsLabel: color: #ce9178;]('Instructions') Semantics(label: color: #ce9178;]('What I want to say', child: MyWidget())</p> <p>Thanks.</p>
Accessibility features in flutter
This Article is posted by seven.srikanth at 5/23/2019 7:40:38 PM
Check out our other latest articles
Safearea widget - How to avoid visual overlap with Notch on flutter mobile app?How to convert row of widgets into column of widgets in flutter based on screen size?
How to run Flutter programs from GitHub?
How to get screen orientation in flutter?
NavigationRail example in flutter
Tags: Accessibility features;
Check out our other latest articles
Safearea widget - How to avoid visual overlap with Notch on flutter mobile app?How to convert row of widgets into column of widgets in flutter based on screen size?
How to run Flutter programs from GitHub?
How to get screen orientation in flutter?
NavigationRail example in flutter