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
Dendos
2020-08-08 15:16:10 +0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cd9f22512fa93e2a4cd396da68ef70f6449329e6
cd9f2251
1 parent
fc48fe69
tweak default value
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
lib/src/bottom_sheet.dart
lib/src/bottom_sheet.dart
View file @
cd9f225
...
...
@@ -42,7 +42,7 @@ class ModalBottomSheet extends StatefulWidget {
/// Creates a bottom sheet.
const
ModalBottomSheet
({
Key
key
,
this
.
closeProgressThreshold
=
_closeProgressThreshold
,
this
.
closeProgressThreshold
,
this
.
animationController
,
this
.
animationCurve
,
this
.
enableDrag
=
true
,
...
...
@@ -157,7 +157,8 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
widget
.
animationController
.
value
<
_willPopThreshold
;
bool
get
hasReachedCloseThreshold
=>
widget
.
animationController
.
value
<
widget
.
closeProgressThreshold
;
widget
.
animationController
.
value
<
(
widget
.
closeProgressThreshold
??
_closeProgressThreshold
);
void
_close
()
{
isDragging
=
false
;
...
...
Please
register
or
login
to post a comment