Skip to content

[Feature Requet] Set a default keyboardDismissBehavior inside MaterialApp / CupertinoApp #158566

@EArminjon

Description

@EArminjon

Use case

I would like to use ScrollViewKeyboardDismissBehavior.onDrag inside all my app scrollviews.
Scrollview set by default the value of ScrollViewKeyboardDismissBehavior inside widget constructor, there is no way to do that globally.

Proposal

As for MaterialApp.scrollBehavior, it could be interesting to have a MaterialApp.keyboardDismissBehavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: scrollingViewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework teamwaiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions