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:03:30 +0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fc48fe69a439034c28003de7c9eeac654330d29c
fc48fe69
1 parent
e63be7ab
add closeProgressThreshold for cupertino modal
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
lib/src/bottom_sheets/cupertino_bottom_sheet.dart
lib/src/bottom_sheets/cupertino_bottom_sheet.dart
View file @
fc48fe6
...
...
@@ -322,6 +322,7 @@ class CupertinoScaffold extends StatefulWidget {
static
Future
<
T
>
showCupertinoModalBottomSheet
<
T
>({
@required
BuildContext
context
,
@required
ScrollWidgetBuilder
builder
,
double
closeProgressThreshold
,
Curve
animationCurve
,
Curve
previousRouteAnimationCurve
,
Color
backgroundColor
,
...
...
@@ -349,6 +350,7 @@ class CupertinoScaffold extends StatefulWidget {
final
topRadius
=
CupertinoScaffold
.
of
(
context
).
topRadius
;
final
result
=
await
Navigator
.
of
(
context
,
rootNavigator:
useRootNavigator
)
.
push
(
CupertinoModalBottomSheetRoute
<
T
>(
closeProgressThreshold:
closeProgressThreshold
,
builder:
builder
,
secondAnimationController:
CupertinoScaffold
.
of
(
context
).
animation
,
containerBuilder:
(
context
,
_
,
child
)
=>
_CupertinoBottomSheetContainer
(
...
...
Please
register
or
login
to post a comment