Material, Cupertino and custom modal bottom sheets for Flutter
open sourceMITfree
modal_bottom_sheet is an open source Flutter package by Jaime Blasco for modal bottom sheets: Material ones, iOS 13-style Cupertino ones that push the page behind them back, bar modals and sheets in your own style. Unlike Flutter's built-in showModalBottomSheet it works with a scroll view inside (drag down to close), respects PopScope to prevent closing, supports the top safe area and scrolls to top when the iOS status bar is tapped. The same repository has Sheet, an experimental rewrite of the behaviour from scratch.
Problems it solves
- show an iOS-style modal sheet in my Flutter app
- a Flutter bottom sheet with a scrolling list that still closes when dragged down
- stop a Flutter bottom sheet from being dismissed while a form is unsaved
Features
- Material modal bottom sheets
- Cupertino (iOS 13 style) modal sheets that scale the page behind
- bar modals and custom-styled sheets
- scroll views inside the sheet with drag down to close
- PopScope and WillPopScope support to prevent closing
- top safe area and tap-status-bar-to-scroll-top on iOS
