Dendos

update docs

@@ -52,6 +52,7 @@ showMaterialModalBottomSheet( @@ -52,6 +52,7 @@ showMaterialModalBottomSheet(
52 |AnimationController secondAnimation| The `secondAnimation` parameter allows you to provide an animation controller that will be used to animate push/pop of the modal route. Using this param is advised against and will be probably removed in future versions | 52 |AnimationController secondAnimation| The `secondAnimation` parameter allows you to provide an animation controller that will be used to animate push/pop of the modal route. Using this param is advised against and will be probably removed in future versions |
53 |bool bounce = false| The `bounce` parameter specifies if the bottom sheet can go beyond the top boundary while dragging | 53 |bool bounce = false| The `bounce` parameter specifies if the bottom sheet can go beyond the top boundary while dragging |
54 |Duration duration = const Duration(milliseconds: 400)| The `duration` of modal opening | 54 |Duration duration = const Duration(milliseconds: 400)| The `duration` of modal opening |
  55 +|double closeProgressThreshold = 0.6| The `closeProgressThreshold` specifies when the bottom sheet will be dismissed when user drags it. |
55 56
56 57
57 #### Material params 58 #### Material params
@@ -58,6 +58,8 @@ class ModalBottomSheet extends StatefulWidget { @@ -58,6 +58,8 @@ class ModalBottomSheet extends StatefulWidget {
58 assert(builder != null), 58 assert(builder != null),
59 super(key: key); 59 super(key: key);
60 60
  61 + /// The closeProgressThreshold parameter
  62 + /// specifies when the bottom sheet will be dismissed when user drags it.
61 final double closeProgressThreshold; 63 final double closeProgressThreshold;
62 64
63 /// The animation controller that controls the bottom sheet's entrance and 65 /// The animation controller that controls the bottom sheet's entrance and