Sometimes TextInputType.emailAddress property for the text fields gets ignored and it happens absolutely randomly.
To elaborate further, it’s NOT forcing the input keyboard on english language. It CAN enforce other keyboard if you have installed in email-like mode (add @ and . to main layout), but what I need is to enforce it also to be on english. And this particular part sometimes works, and sometimes not even though 0 changes and completely same flow happens on screen side.
What can I do here? Is it a flutter bug, or there’s a workaround? Been trying to fix it for like 8 hours with absolutely no success
Would be best to file an issue with a reproducible sample in the flutter repo.
I recommend not relying on TextInputType.emailAddress to force an English keyboard, because it only suggests an email-friendly layout (with @ and .) and the actual keyboard language is controlled by the operating system and the user’s installed keyboard. The inconsistent behavior you’re seeing is therefore expected rather than a true Flutter bug. On Android, you can improve things slightly by using hintLocales: [Locale(‘en’)], but this is still only a hint and not guaranteed, while on iOS there is currently no reliable way in Flutter to enforce a specific keyboard language. I think it’s the best practical approach to configure the field properly (disable autocorrect, suggestions, capitalization) and rely on validation instead of trying to strictly force an English keyboard.