Skip to content

Bad interaction between auto correct and obscure text #185843

Description

@gmackall

If on a TextField you enable

  1. spellCheckConfiguration: const SpellCheckConfiguration(),
  2. obscureText: true,

A couple of bad things happen:

  1. Mis spellings trigger suggestions which are a function of the hidden characters, leaking info about them
  2. Those suggestions don't have a visual red underline
  3. Clicking on the suggestions actually doesn't do anything

Presumably we just shouldn't do spell check on hidden text, so maybe there should be a lint or maybe the behavior should silently do nothing.

See video:

Screen_recording_20260430_110755.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.team-text-inputOwned by Text Input teamtriaged-text-inputTriaged by Text Input team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions