Skip to content

Support for language hints in TextFields #163698

Closed

Description

@Pomis

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"],
)

Activity

  1. added
    in triagePresently being triaged by the triage team
    on Feb 20, 2025
  2. huycozy commented on Feb 20, 2025

    @huycozy
    Member

    This seems to be a proposal for TextField.decoration: InputDecoration since all current hint properties are converged there.

  3. added
    a: text inputEntering text in a text field or keyboard related problems
    c: new featureNothing broken; request for a new capability
    a: internationalizationSupporting other languages or locales. (aka i18n)
    c: proposalA detailed proposal for a change to Flutter
    p: material_uimaterial_ui package in flutter/packages
    frameworkflutter/packages/flutter repository. See also f: labels.
    and removed
    in triagePresently being triaged by the triage team
    on Feb 20, 2025
  4. added
    P2Important issues not at the top of the work list
    fyi-androidFor the attention of Android platform team
    on Feb 20, 2025
  5. justinmc commented on Feb 20, 2025

    @justinmc
    Contributor

    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.

  6. self-assigned this
    on Feb 21, 2025
  7. moved this from To do to In progress in Nevercodeon Mar 17, 2025
  8. moved this from In progress to PR submitted in Nevercodeon Mar 26, 2025
  9. moved this from PR submitted to Done (PR merged) in Nevercodeon Apr 17, 2025
  10. added
    r: fixedIssue is closed as already fixed in a newer version
    on Apr 17, 2025
  11. github-actions commented on May 1, 2025

    @github-actions

    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 -v and a minimal reproduction of the issue.

  12. locked as resolved and limited conversation to collaborators on May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.fyi-androidFor the attention of Android platform teamp: material_uimaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionteam-text-inputOwned by Text Input teamtriaged-text-inputTriaged by Text Input team

Type

No type

Projects

  • Status
    Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions