flutter_accessibility (0.0.3)
Installation
dart pub add flutter_accessibility:0.0.3 --hosted-url=
About this package
Flutter Accessibility
Flutter widgets are not accessible by default for Appium and other testing frameworks. This package adds accessibility to your widgets by wrapping them with CustomSemantics and SemanticsGroup. This will provide an accessibility_id for the widget.
There is a limitation because this doesn't work on android for textfields because they will not be editable again so for textfields you need to add isTextField: true to the CustomSemantics widget.
How to use
You can wrap your widget with CustomSemantics to add accessibility to your widget.
CustomSemantics(
identifier: "text",
child: Text("Text"),
),
You can group widgets together with a SemanticsGroup to update the identifier of underlying CustomSemantics with the identifier of the SemanticsGroup.
SemanticsGroup(
identifier: "group",
children: [
CustomSemantics(
identifier: "text1",
child: Text("Text1"),
),
CustomSemantics(
identifier: "text2",
child: Text("Text2"),
),
],
),
Issues
Please file any issues, bugs or feature request as an issue on our GitHub page. Commercial support is available if you need help with integration with your app or services. You can contact us at support@iconica.nl.
Want to contribute
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our contribution guide and send us your pull request.
Author
This flutter_accessibility
for Flutter is developed by Iconica. You can contact us at support@iconica.nl