rebelappstudio / accessibility_tools

MIT License
67 stars 4 forks source link

Ignore check in specific widgets #44

Closed phcs971 closed 8 months ago

phcs971 commented 8 months ago

Is there any way to ignore a check, or all checks in a specific widget? For example, if I have a small button that I cannot make it the minimum tag target size due to the UI, is there any way to avoid checks in these widgets and childrens.

aednlaxer commented 8 months ago

Hi @phcs971,

At the moment there's no way to ignore a check in a specific widget. I'd advise not to ignore accessibility issues like that since they're, well, issues that could make it harder or impossible to use the app

phcs971 commented 8 months ago

Hi @phcs971,

At the moment there's no way to ignore a check in a specific widget. I'd advise not to ignore accessibility issues like that since they're, well, issues that could make it harder or impossible to use the app

In my case, my hole app in under a GestureDetector, which resets FocusScope on tap so user can close the keyboard easily. Also I have very small indicators on some carousel that are tapeable.

I found a way to ignore these with the excludeFromSemantics property in GestureDetector, there is also a excludeSemantics in Semantics but I haven't tried it.