Showing
3 changed files
with
4 additions
and
3 deletions
@@ -19,3 +19,6 @@ Thanks to @bierbaumtim @troyanskiy @rodineijf for the contributions | @@ -19,3 +19,6 @@ Thanks to @bierbaumtim @troyanskiy @rodineijf for the contributions | ||
19 | - Added support for scroll-to-top by tapping the status bar on iOS devices. | 19 | - Added support for scroll-to-top by tapping the status bar on iOS devices. |
20 | - Use `curveAnimation` to define a custom curve animation for the modal transition | 20 | - Use `curveAnimation` to define a custom curve animation for the modal transition |
21 | - Bug fixes releated to horizontal scroll, clamping physics and othes. | 21 | - Bug fixes releated to horizontal scroll, clamping physics and othes. |
22 | + | ||
23 | +## [0.2.0+1] - ScrollView bug fix | ||
24 | +- Fix bug when scrollview was not used |
@@ -14,7 +14,6 @@ import 'package:modal_bottom_sheet/src/utils/primary_scroll_status_bar.dart'; | @@ -14,7 +14,6 @@ import 'package:modal_bottom_sheet/src/utils/primary_scroll_status_bar.dart'; | ||
14 | 14 | ||
15 | import 'package:modal_bottom_sheet/src/utils/bottom_sheet_suspended_curve.dart'; | 15 | import 'package:modal_bottom_sheet/src/utils/bottom_sheet_suspended_curve.dart'; |
16 | 16 | ||
17 | - | ||
18 | const Curve _decelerateEasing = Cubic(0.0, 0.0, 0.2, 1.0); | 17 | const Curve _decelerateEasing = Cubic(0.0, 0.0, 0.2, 1.0); |
19 | const Curve _modalBottomSheetCurve = _decelerateEasing; | 18 | const Curve _modalBottomSheetCurve = _decelerateEasing; |
20 | const Duration _bottomSheetDuration = Duration(milliseconds: 400); | 19 | const Duration _bottomSheetDuration = Duration(milliseconds: 400); |
@@ -265,7 +264,6 @@ class _ModalBottomSheetState extends State<ModalBottomSheet> | @@ -265,7 +264,6 @@ class _ModalBottomSheetState extends State<ModalBottomSheet> | ||
265 | 264 | ||
266 | if (scrollPosition.axis == Axis.horizontal) return; | 265 | if (scrollPosition.axis == Axis.horizontal) return; |
267 | 266 | ||
268 | - | ||
269 | final isScrollReversed = scrollPosition.axisDirection == AxisDirection.down; | 267 | final isScrollReversed = scrollPosition.axisDirection == AxisDirection.down; |
270 | final offset = isScrollReversed | 268 | final offset = isScrollReversed |
271 | ? scrollPosition.pixels | 269 | ? scrollPosition.pixels |
1 | name: modal_bottom_sheet | 1 | name: modal_bottom_sheet |
2 | description: 'Create awesome and powerful modal bottom sheets. Material, Cupertino iOS 13 or create your own style' | 2 | description: 'Create awesome and powerful modal bottom sheets. Material, Cupertino iOS 13 or create your own style' |
3 | -version: 0.2.0 | 3 | +version: 0.2.0+1 |
4 | homepage: 'https://github.com/jamesblasco/modal_bottom_sheet' | 4 | homepage: 'https://github.com/jamesblasco/modal_bottom_sheet' |
5 | 5 | ||
6 | environment: | 6 | environment: |
-
Please register or login to post a comment