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
bierbaumtim
2020-05-02 15:09:02 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
69df5d2cb723cc8a9f3388287b094595e924a876
69df5d2c
1 parent
0254b2f9
improve naming of curve parameter
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
lib/src/bottom_sheets/cupertino_bottom_sheet.dart
lib/src/bottom_sheets/cupertino_bottom_sheet.dart
View file @
69df5d2
...
...
@@ -72,8 +72,8 @@ Future<T> showCupertinoModalBottomSheet<T>({
Color
barrierColor
,
bool
expand
=
false
,
AnimationController
secondAnimation
,
Curve
routeAnimationCurve
,
Curve
modalAnimationCurve
,
Curve
animationCurve
,
Curve
previousRouteAnimationCurve
,
bool
useRootNavigator
=
false
,
bool
bounce
=
true
,
bool
isDismissible
,
...
...
@@ -109,14 +109,14 @@ Future<T> showCupertinoModalBottomSheet<T>({
isDismissible:
isDismissible
??
expand
==
false
?
true
:
false
,
modalBarrierColor:
barrierColor
??
Colors
.
black12
,
enableDrag:
enableDrag
,
routeAnimationCurve:
routeAnimationCurve
,
modalAnimationCurve:
modalAnimationCurve
,
animationCurve:
animationCurve
,
previousRouteAnimationCurve:
previousRouteAnimationCurve
,
));
return
result
;
}
class
CupertinoModalBottomSheetRoute
<
T
>
extends
ModalBottomSheetRoute
<
T
>
{
final
Curve
modal
AnimationCurve
;
final
Curve
previousRoute
AnimationCurve
;
CupertinoModalBottomSheetRoute
({
ScrollWidgetBuilder
builder
,
...
...
@@ -126,14 +126,14 @@ class CupertinoModalBottomSheetRoute<T> extends ModalBottomSheetRoute<T> {
ShapeBorder
shape
,
Clip
clipBehavior
,
AnimationController
secondAnimationController
,
Curve
routeA
nimationCurve
,
Curve
a
nimationCurve
,
Color
modalBarrierColor
,
bool
bounce
=
true
,
bool
isDismissible
=
true
,
bool
enableDrag
=
true
,
@required
bool
expanded
,
RouteSettings
settings
,
this
.
modal
AnimationCurve
,
this
.
previousRoute
AnimationCurve
,
})
:
assert
(
expanded
!=
null
),
assert
(
isDismissible
!=
null
),
assert
(
enableDrag
!=
null
),
...
...
@@ -148,7 +148,7 @@ class CupertinoModalBottomSheetRoute<T> extends ModalBottomSheetRoute<T> {
enableDrag:
enableDrag
,
expanded:
expanded
,
settings:
settings
,
animationCurve:
routeA
nimationCurve
,
animationCurve:
a
nimationCurve
,
);
@override
...
...
@@ -183,7 +183,7 @@ class CupertinoModalBottomSheetRoute<T> extends ModalBottomSheetRoute<T> {
return
_CupertinoModalTransition
(
secondaryAnimation:
secondaryAnimation
,
body:
child
,
animationCurve:
modal
AnimationCurve
,
animationCurve:
previousRoute
AnimationCurve
,
);
}
}
...
...
@@ -277,8 +277,8 @@ class CupertinoScaffold extends StatefulWidget {
static
Future
<
T
>
showCupertinoModalBottomSheet
<
T
>({
@required
BuildContext
context
,
@required
ScrollWidgetBuilder
builder
,
Curve
routeAnimationCurve
,
Curve
modalAnimationCurve
,
Curve
animationCurve
,
Curve
previousRouteAnimationCurve
,
Color
backgroundColor
,
Color
barrierColor
,
bool
expand
=
false
,
...
...
@@ -313,8 +313,8 @@ class CupertinoScaffold extends StatefulWidget {
isDismissible:
isDismissible
??
expand
==
false
?
true
:
false
,
modalBarrierColor:
barrierColor
??
Colors
.
black12
,
enableDrag:
enableDrag
,
routeAnimationCurve:
routeAnimationCurve
,
modalAnimationCurve:
modalAnimationCurve
,
animationCurve:
animationCurve
,
previousRouteAnimationCurve:
previousRouteAnimationCurve
,
));
return
result
;
}
...
...
Please
register
or
login
to post a comment