flutter_accessibility (0.0.1)

Published 2025-02-21 14:12:14 +01:00 by freek

Installation

dart pub add flutter_accessibility:0.0.1 --hosted-url=

About this package

Flutter Package containing utility widgets to help with Semantics in Flutter apps

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

Details
Pub
2025-02-21 14:12:14 +01:00
4
4.6 KiB
Assets (1)
0.0.1.tar.gz 4.6 KiB
Versions (3) View all
0.0.3 2025-02-28
0.0.2 2025-02-28
0.0.1 2025-02-21