Repository navigation
Support for language hints in TextFields #163698
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.fyi-androidFor the attention of Android platform teamFor the attention of Android platform teamp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-text-inputOwned by Text Input teamOwned by Text Input teamtriaged-text-inputTriaged by Text Input teamTriaged by Text Input team
Description
Use case
In native Android development, it is possible to hint at what language to use in the onscreen keyboard. Seems like Flutter does not support this feature, however, this is a very convenient feature, especially for language-learning apps
Proposal
Add a localeHint property to TextField:
TextField(
hintLocales: ["et_EE"],
)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.fyi-androidFor the attention of Android platform teamFor the attention of Android platform teamp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-text-inputOwned by Text Input teamOwned by Text Input teamtriaged-text-inputTriaged by Text Input teamTriaged by Text Input team
Type
Projects
- StatusShow more project fieldsDone (PR merged)
Activity
huycozy commentedon Feb 20, 2025
This seems to be a proposal for TextField.decoration: InputDecoration since all current hint properties are converged there.
justinmc commentedon Feb 20, 2025
Thanks for flagging this @Pomis I didn't realized it existed. I think this is a valid proposal and we should probably add this. We'd need to add hintLocales to EditableText and all of the other text editing widgets, as well as add something in the platform embedders in the engine to set the correct native flags.
Do we know if this exists only on Android or do other platforms have something similar?
@huycozy You're thinking of InputDecoration.hint, but this issue is referring to things like autofillHints.
Add support for language hints in TextFields (Android only) (#165554)
Add support for language hints in TextFields (Android only) (flutter#…
github-actions commentedon May 1, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.