Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
modal_bottom_sheet
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jaime Blasco
2020-11-11 11:09:26 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e26131c8096fa9ae91d26b873e208513be8f87a5
e26131c8
1 parent
ad32e272
format document
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
lib/src/bottom_sheet.dart
lib/src/bottom_sheet.dart
View file @
e26131c
...
...
@@ -227,8 +227,8 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
if
(
_dismissUnderway
||
!
isDragging
)
return
;
isDragging
=
false
;
// ignore: unawaited_futures
_bounceDragController
.
reverse
();
// ignore: unawaited_futures
_bounceDragController
.
reverse
();
var
canClose
=
true
;
if
(
widget
.
shouldClose
!=
null
&&
hasReachedWillPopThreshold
)
{
...
...
@@ -241,7 +241,7 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
_close
();
}
else
if
(
hasReachedCloseThreshold
)
{
if
(
widget
.
animationController
.
value
>
0.0
)
{
// ignore: unawaited_futures
// ignore: unawaited_futures
widget
.
animationController
.
fling
(
velocity:
-
1.0
);
}
_close
();
...
...
Please
register
or
login
to post a comment