Skip to content

Scaffold drawers missing DismissAction binding #106131

@ds84182

Description

@ds84182

Steps to Reproduce

  1. Run scaffold code sample flutter create --sample=material.Scaffold.drawer.1 ...
  2. Open drawer
  3. Press Escape key on keyboard

Expected results: Drawer should dismiss as DismissAction is documented to close drawers along with dialogs and popup menus

Actual results: Drawer is not dismissed. The handler for the action installed by ModalRoute does not work here because it is only enabled for barrier dismissible UIs.

Separately, I think there should be a PopAction that works for all types of routes, and a DismissOrPopAction that combines the two (emulating the Android back button). Will file a separate bug for that.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: desktopRunning on desktopframeworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions