Jaime Blasco

v0.2.0+1

@@ -18,4 +18,7 @@ Thanks to @bierbaumtim @troyanskiy @rodineijf for the contributions @@ -18,4 +18,7 @@ Thanks to @bierbaumtim @troyanskiy @rodineijf for the contributions
18 ## [0.2.0] - New Cool Features 18 ## [0.2.0] - New Cool Features
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);
@@ -260,12 +259,11 @@ class _ModalBottomSheetState extends State<ModalBottomSheet> @@ -260,12 +259,11 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
260 void _handleScrollUpdate(ScrollNotification notification) { 259 void _handleScrollUpdate(ScrollNotification notification) {
261 //Check if scrollController is used 260 //Check if scrollController is used
262 if (!_scrollController.hasClients) return; 261 if (!_scrollController.hasClients) return;
263 - 262 +
264 final scrollPosition = _scrollController.position; 263 final scrollPosition = _scrollController.position;
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: