Skip to content

Alllow BottomSheet to be not dismissible by tapping on scrim #42395

@tjonganthony

Description

@tjonganthony

Use case

We are using bottom sheet to display an asynchronous flow. This flow should not be dismissible until a success or error is shown.
Material design for Android and iOS already has an implementation of this

Proposal

let showModalBottomSheet takes in a variable isDismissable and pass it to _ModalBottomSheetRoute. This value will be returned instead for bool get barrierDismissible at
https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/bottom_sheet.dart#L363

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityf: 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