Skip to content

Modal bottom sheets should not dismiss on tapping the sheet body #20720

@jklint-g

Description

@jklint-g

Currently showModalBottomSheet() allows dismissing the displayed sheet by tapping on its body.
The modal bottom sheet should not dismiss upon tapping the general body.

See https://material.io/design/components/sheets-bottom.html#modal-bottom-sheet, modal bottom sheets can only be dismissed by:

  • Tapping a menu item or action within the bottom sheet
  • Tapping the scrim
  • Swiping the sheet down
  • Using a close affordance within the bottom sheet’s top app bar, if available

I can work around this with an opaque noop gesture detector around the sheet widget, but the default behavior ought to conform to material spec.

Metadata

Metadata

Assignees

Labels

f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions