Skip to content

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

Closed

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

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    c: new featureNothing broken; request for a new capability
    on Oct 10, 2019
  2. github-actions commented on Aug 27, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  3. locked as resolved and limited conversation to collaborators on Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions