Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
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
Benjamin Jaeger
2022-01-25 15:13:11 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2022-01-25 15:13:11 +0100
Commit
54f62b1420a4ddf8a97822fdf4ee52ba201c6460
54f62b14
1 parent
8867b13f
add curve property to bottomsheet
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
lib/get_navigation/src/bottomsheet/bottomsheet.dart
lib/get_navigation/src/bottomsheet/bottomsheet.dart
View file @
54f62b1
...
...
@@ -21,6 +21,7 @@ class GetModalBottomSheetRoute<T> extends PopupRoute<T> {
RouteSettings
?
settings
,
this
.
enterBottomSheetDuration
=
const
Duration
(
milliseconds:
250
),
this
.
exitBottomSheetDuration
=
const
Duration
(
milliseconds:
200
),
this
.
curve
,
})
:
super
(
settings:
settings
)
{
RouterReportManager
.
instance
.
reportCurrentRoute
(
this
);
}
...
...
@@ -38,6 +39,7 @@ class GetModalBottomSheetRoute<T> extends PopupRoute<T> {
// final String name;
final
Duration
enterBottomSheetDuration
;
final
Duration
exitBottomSheetDuration
;
final
Curve
?
curve
;
// remove safearea from top
final
bool
removeTop
;
...
...
@@ -62,6 +64,15 @@ class GetModalBottomSheetRoute<T> extends PopupRoute<T> {
}
@override
Animation
<
double
>
createAnimation
()
{
if
(
curve
!=
null
)
{
return
CurvedAnimation
(
curve:
curve
!,
parent:
_animationController
!.
view
);
}
return
_animationController
!.
view
;
}
@override
AnimationController
createAnimationController
()
{
assert
(
_animationController
==
null
);
_animationController
=
...
...
Please
register
or
login
to post a comment