Skip to content

Commit 2c249c5

Browse files
committed
Prepare for 0.1.5 release
1 parent bf6247b commit 2c249c5

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
## [0.1.4] - Clean code and fix small bugs
66

7-
## [0.1.5] - Bugfixes
8-
- fix assertion in CupertinoBottomSheet and BottomSheetRoute when using the CupetinoApp or WidgetsApp as root
9-
- fix assertion when scrollController isn't used by the builder
7+
## [0.1.5] - Scroll improvements and bug fixes
8+
- Support for closing a modal with a scroll view by dragging down fast.
9+
- Fix assertion in CupertinoBottomSheet and BottomSheetRoute when using the CupetinoApp or WidgetsApp as root
10+
- Fix assertion when scrollController isn't used by the builder

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Check in the example project `showAvatarModalBottomSheet` for how to create your
187187

188188
## Roadmap
189189

190-
- [ ] Support closing by dragging fast on a modal with a scroll view.
190+
- [ X ] Support closing by dragging fast on a modal with a scroll view.
191191

192192
- [ ] Improve animation curves when user is not dragging.
193193

example/lib/main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ class _MyHomePageState extends State<MyHomePage> {
194194
scrollController: scrollController),
195195
)),
196196
ListTile(
197-
title: Text('Cupertino Navigator + Scroll + WillPopScope'),
197+
title:
198+
Text('Cupertino Navigator + Scroll + WillPopScope'),
198199
onTap: () => showCupertinoModalBottomSheet(
199200
expand: true,
200201
context: context,

lib/src/bottom_sheet.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
225225
}
226226
}
227227

228-
229228
// As we cannot access the dragGesture detector of the scroll view
230229
// we can not know the DragDownDetails and therefore the end velocity.
231230
// VelocityTracker it is used to calculate the end velocity of the scroll
@@ -257,8 +256,7 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
257256
final offset = Offset(0, _scrollController.offset);
258257
_velocityTracker.addPosition(duration, offset);
259258
_handleDragUpdate(dragDetails.primaryDelta);
260-
}
261-
else if (isDragging) {
259+
} else if (isDragging) {
262260
final velocity = _velocityTracker.getVelocity().pixelsPerSecond.dy;
263261
_handleDragEnd(velocity);
264262
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: modal_bottom_sheet
2-
description: 'Create awesome and powerful modal bottom sheets. Material, Cupertino or create your own'
2+
description: 'Create awesome and powerful modal bottom sheets. Material, Cupertino iOS 13 or create your own style'
33
version: 0.1.5
44
homepage: 'https://github.com/jamesblasco/modal_bottom_sheet'
55

0 commit comments

Comments
 (0)