Filter by Widgets


Accessibility features in flutter

This Article is posted by seven.srikanth at 23-05-2019 19:40:38



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 "semantics" in 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,


Text('30 km/h',
semanticsLabel: '30 Kilometers per hour')

Icon(Icons.library_books,
semanticsLabel: 'Instructions')

Semantics(label: 'What I want to say',
child: MyWidget())


Thanks.
0 Comments
Login to comment.
Recent Comments

Be the first to Comment. You can ask a Query or Share your toughts or Just say thanks.




Recent articles

Horizontal List View

Check out this article on Horizontal List View

Read full post

How to get the Width and Height of the Screen in Flutter?

Check out this article on How to get the Width and Height of the Screen in Flutter?

Read full post

How to add a Footer Buttons in Flutter?

Check out this article on How to add a Footer Buttons in Flutter?

Read full post

TextField in Flutter

Check out this article on TextField in Flutter

Read full post

How to Draw a Triangle using Canvas in Flutter?

Check out this article on How to Draw a Triangle using Canvas in Flutter?

Read full post

url_launcher Package - Lets Launch URL, Send Email, Make Call or Send SMS in Flutter

Check out this article on url_launcher Package - Lets Launch URL, Send Email, Make Call or Send SMS in Flutter

Read full post

Error: The name 'RangeSlider' is defined in the libraries 'package:flutter/src/material/range_slider.dart' and 'package:flutter_range_slider/src/flutter_range_slider.dart'.

Check out this article on Error: The name 'RangeSlider' is defined in the libraries 'package:flutter/src/material/range_slider.dart' and 'package:flutter_range_slider/src/flutter_range_slider.dart'.

Read full post

How to create a persistent bottom sheet in Flutter?

Check out this article on How to create a persistent bottom sheet in Flutter?

Read full post

How to draw a Decorative Horizontal line in Flutter?

Check out this article on How to draw a Decorative Horizontal line in Flutter?

Read full post

How to fetch an Image from Internet in Flutter

Check out this article on How to fetch an Image from Internet in Flutter

Read full post

© 2018 - Fluttercentral | Email to me - Seven.srikanth@gmail.com

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License , and code samples are licensed under the BSD License.