Skip to content

Allow SearchDelegate to alter TextField properties: autocorrect and enableSuggestions #98241

@BramDriesen

Description

@BramDriesen

Use case

I have a screen with a custom search delegate. My search goes through names of local soccer teams (some with funky names). However during testing I noticed that the autocorrect sometimes would kick in and replace an exact match with a name with a real word. This was to me quite frustrating so I looked into the customisation options for the SearchDelegate class. I noticed a few of the TextField options could be set through the constructor, but none of the autocorrect related options.

Proposal

Allow the following:

  • autocorrect
  • enableSuggestions

To override via the constructor similar to how you can override the searchFieldLabel text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-text-inputOwned by Text Input team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions