Skip to content

Commit

Permalink
v0.2.0+1
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesblasco committed Jul 10, 2020
1 parent 568581b commit 2d4e8d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- Bug fixes releated to horizontal scroll, clamping physics and othes.

## [0.2.0+1] - ScrollView bug fix
- Fix bug when scrollview was not used
4 changes: 1 addition & 3 deletions lib/src/bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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:
Expand Down

0 comments on commit 2d4e8d3

Please sign in to comment.