Dendos

tweak default value

@@ -42,7 +42,7 @@ class ModalBottomSheet extends StatefulWidget { @@ -42,7 +42,7 @@ class ModalBottomSheet extends StatefulWidget {
42 /// Creates a bottom sheet. 42 /// Creates a bottom sheet.
43 const ModalBottomSheet({ 43 const ModalBottomSheet({
44 Key key, 44 Key key,
45 - this.closeProgressThreshold = _closeProgressThreshold, 45 + this.closeProgressThreshold,
46 this.animationController, 46 this.animationController,
47 this.animationCurve, 47 this.animationCurve,
48 this.enableDrag = true, 48 this.enableDrag = true,
@@ -157,7 +157,8 @@ class _ModalBottomSheetState extends State<ModalBottomSheet> @@ -157,7 +157,8 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
157 widget.animationController.value < _willPopThreshold; 157 widget.animationController.value < _willPopThreshold;
158 158
159 bool get hasReachedCloseThreshold => 159 bool get hasReachedCloseThreshold =>
160 - widget.animationController.value < widget.closeProgressThreshold; 160 + widget.animationController.value <
  161 + (widget.closeProgressThreshold ?? _closeProgressThreshold);
161 162
162 void _close() { 163 void _close() {
163 isDragging = false; 164 isDragging = false;