-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
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
- Android: https://developer.android.com/reference/com/google/android/material/bottomsheet/BottomSheetBehavior (setCancelable)
- iOS: https://github.com/material-components/material-components-ios/blob/develop/components/BottomSheet/src/MDCBottomSheetController.h#L61
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.