Showing
1 changed file
with
9 additions
and
8 deletions
@@ -15,10 +15,16 @@ Create awesome and powerful modal bottom sheets. | @@ -15,10 +15,16 @@ Create awesome and powerful modal bottom sheets. | ||
15 | 15 | ||
16 | Explore the [Web Demo](https://jamesblasco.github.io/modal_bottom_sheet/#/) or clone the repository. | 16 | Explore the [Web Demo](https://jamesblasco.github.io/modal_bottom_sheet/#/) or clone the repository. |
17 | 17 | ||
18 | -Known problems on web demo: | ||
19 | -- Web demo can run very slow on mobile devides. | 18 | +Why not `showModalBottomSheet`? |
19 | + | ||
20 | +Inspired by `showModalBottomSheet`, it completes with some must-need features: | ||
21 | + | ||
22 | +- Support for inside scrollview + dragging down to close (`showModalBottomSheet` won't work correctly with scrollviews. | ||
23 | +- Support for `WillPopScope` to prevent closing the dialog. | ||
24 | +- Support for scroll to top when tapping status bar (iOS only) | ||
25 | +- Cupertino modal bottom sheet | ||
26 | +- Create custom modal bottom sheet | ||
20 | 27 | ||
21 | -- Fake status bar doesn't change color as the iOS, Android app | ||
22 | 28 | ||
23 | ## First Steps | 29 | ## First Steps |
24 | 30 | ||
@@ -33,11 +39,6 @@ showMaterialModalBottomSheet( | @@ -33,11 +39,6 @@ showMaterialModalBottomSheet( | ||
33 | builder: (context, scrollController) => Container(), | 39 | builder: (context, scrollController) => Container(), |
34 | ) | 40 | ) |
35 | ``` | 41 | ``` |
36 | -What to use this over flutter `showModalBottomSheet`? | ||
37 | - | ||
38 | -`showMaterialModalBottomSheet` supports closing bottoms sheets by dragging down even if there is a scrollview inside. | ||
39 | -`showModalBottomSheet` won't work correctly with scrollviews. | ||
40 | -Also it supports `WillPopScope` to prevent closing the dialog | ||
41 | 42 | ||
42 | #### Generic params for all modal bottom sheets | 43 | #### Generic params for all modal bottom sheets |
43 | 44 |
-
Please register or login to post a comment