Jaime Blasco

v0.2.0+1

... ... @@ -18,4 +18,7 @@ Thanks to @bierbaumtim @troyanskiy @rodineijf for the contributions
## [0.2.0] - New Cool Features
- Added support for scroll-to-top by tapping the status bar on iOS devices.
- Use `curveAnimation` to define a custom curve animation for the modal transition
- Bug fixes releated to horizontal scroll, clamping physics and othes.
\ No newline at end of file
- Bug fixes releated to horizontal scroll, clamping physics and othes.
## [0.2.0+1] - ScrollView bug fix
- Fix bug when scrollview was not used
\ No newline at end of file
... ...
... ... @@ -14,7 +14,6 @@ import 'package:modal_bottom_sheet/src/utils/primary_scroll_status_bar.dart';
import 'package:modal_bottom_sheet/src/utils/bottom_sheet_suspended_curve.dart';
const Curve _decelerateEasing = Cubic(0.0, 0.0, 0.2, 1.0);
const Curve _modalBottomSheetCurve = _decelerateEasing;
const Duration _bottomSheetDuration = Duration(milliseconds: 400);
... ... @@ -260,12 +259,11 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
void _handleScrollUpdate(ScrollNotification notification) {
//Check if scrollController is used
if (!_scrollController.hasClients) return;
final scrollPosition = _scrollController.position;
if (scrollPosition.axis == Axis.horizontal) return;
final isScrollReversed = scrollPosition.axisDirection == AxisDirection.down;
final offset = isScrollReversed
? scrollPosition.pixels
... ...
name: modal_bottom_sheet
description: 'Create awesome and powerful modal bottom sheets. Material, Cupertino iOS 13 or create your own style'
version: 0.2.0
version: 0.2.0+1
homepage: 'https://github.com/jamesblasco/modal_bottom_sheet'
environment:
... ...