Skip to content

v10.0.17

@WillCallahan WillCallahan tagged this 02 Jan 02:00
* feat: Improve accessibility of PhoneFormField

This commit addresses accessibility issues in the PhoneFormField by ensuring the country selector button is properly exposed to accessibility services.

Previously:
- The PhoneFieldSemantics widget wrapped the entire PhoneFormField, using ExcludeSemantics to hide the internal components (including the country selector button) from the accessibility tree.
- The CountryButton itself lacked proper semantic labeling, making it difficult for screen readers to convey its purpose.

Changes Made:
- Removed the redundant PhoneFieldSemantics widget and its corresponding file (). The TextField now provides its own semantics, which is sufficient.
- Enhanced the CountryButton widget () by wrapping its content in a Semantics widget. This new Semantics widget provides a descriptive label including the current country's name and dial code, and marks it as a button, allowing screen readers to correctly identify and interact with it.
- Removed the import statement for  from .

Impact:
- Users relying on screen readers can now properly interact with and understand the purpose of the country selector button in the PhoneFormField, significantly improving accessibility.

* Updaed flutter_country_selector to 1.0.19

* Use countryName variable instead of calling countryName method

* Added CHANGELOG entry for 10.0.17
Assets 2
Loading