Skip to content

Expose onTapOutside from SearchBar's TextField #145096

@aleripe

Description

@aleripe

Use case

All the TextFields in my app are set to lose focus closing the keyboard when they're tapped outside. I can't do the same on SearchBar as the onTapOutside property of TextField class is not exposed.

Proposal

Introduce onTextOutside parameter for SearchBar and SearchAnchor constructors.

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.r: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions