Skip to content

expose kexboardType and textInputAction parameters of the SearchAnchor TextField #138483

@salpers

Description

@salpers

Is there an existing issue for this?

Use case

For a new Material3 project, I am trying to implement SearchAnchor instead of SearchDelegate.
However, in contrast to SearchDelegate, the new SearchAnchor appears to be limited in customization options.
To allow for more customization of the search experience, it would be beneficial to expose parameters similar to the ones of the SearchDelegate. Example parameters are keyboardType or the textInputAction.

Proposal

introduce textinputAction and kexboardType as parameters for the SearchBar constructor. Also include them in SearchAnchor() and SearchAnchor.bar() constructors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: 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.r: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions