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
Jonatas
2020-10-01 16:53:40 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ea8130844e351fcf9de41546902ee1c1d31052a7
ea813084
1 parent
03b5aecb
improve transition duration
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
packages/get_navigation/lib/src/root/root_controller.dart
packages/get_navigation/lib/src/root/root_widget.dart
packages/get_navigation/lib/src/routes/default_route.dart
packages/get_navigation/lib/src/routes/get_route.dart
packages/get_navigation/lib/src/root/root_controller.dart
View file @
ea81308
...
...
@@ -15,11 +15,11 @@ class GetMaterialController extends GetxController {
bool
defaultOpaqueRoute
=
true
;
Transition
defaultTransition
;
Duration
defaultTransitionDuration
=
Duration
(
milliseconds:
4
00
);
Duration
defaultTransitionDuration
=
Duration
(
milliseconds:
3
00
);
Curve
defaultTransitionCurve
=
Curves
.
easeOutQuad
;
Curve
defaultDialogTransitionCurve
=
Curves
.
easeOutQuad
;
Duration
defaultDialogTransitionDuration
=
Duration
(
milliseconds:
4
00
);
Duration
defaultDialogTransitionDuration
=
Duration
(
milliseconds:
3
00
);
final
routing
=
Routing
();
...
...
packages/get_navigation/lib/src/root/root_widget.dart
View file @
ea81308
...
...
@@ -132,7 +132,7 @@ class GetMaterialApp extends StatelessWidget {
binding:
unknownRoute
.
binding
,
bindings:
unknownRoute
.
bindings
,
transitionDuration:
(
transitionDuration
??
unknownRoute
.
t
ransitionDuration
),
(
unknownRoute
.
transitionDuration
??
Get
.
defaultT
ransitionDuration
),
transition:
unknownRoute
.
transition
,
popGesture:
unknownRoute
.
popGesture
,
fullscreenDialog:
unknownRoute
.
fullscreenDialog
,
...
...
@@ -150,7 +150,7 @@ class GetMaterialApp extends StatelessWidget {
binding:
match
.
route
.
binding
,
bindings:
match
.
route
.
bindings
,
transitionDuration:
(
transitionDuration
??
match
.
route
.
t
ransitionDuration
),
(
match
.
route
.
transitionDuration
??
Get
.
defaultT
ransitionDuration
),
transition:
match
.
route
.
transition
,
popGesture:
match
.
route
.
popGesture
,
fullscreenDialog:
match
.
route
.
fullscreenDialog
,
...
...
@@ -171,7 +171,7 @@ class GetMaterialApp extends StatelessWidget {
binding:
match
.
route
.
binding
,
bindings:
match
.
route
.
bindings
,
transitionDuration:
(
transitionDuration
??
match
.
route
.
t
ransitionDuration
),
(
match
.
route
.
transitionDuration
??
Get
.
defaultT
ransitionDuration
),
transition:
match
.
route
.
transition
,
popGesture:
match
.
route
.
popGesture
,
fullscreenDialog:
match
.
route
.
fullscreenDialog
,
...
...
packages/get_navigation/lib/src/routes/default_route.dart
View file @
ea81308
...
...
@@ -14,7 +14,7 @@ import 'transitions_type.dart';
class
GetPageRoute
<
T
>
extends
PageRoute
<
T
>
{
GetPageRoute
({
RouteSettings
settings
,
this
.
transitionDuration
=
const
Duration
(
milliseconds:
4
00
),
this
.
transitionDuration
=
const
Duration
(
milliseconds:
3
00
),
this
.
opaque
=
true
,
this
.
parameter
,
this
.
curve
,
...
...
packages/get_navigation/lib/src/routes/get_route.dart
View file @
ea81308
...
...
@@ -31,7 +31,7 @@ class GetPage {
this
.
alignment
,
this
.
parameter
,
this
.
opaque
=
true
,
this
.
transitionDuration
=
const
Duration
(
milliseconds:
400
)
,
this
.
transitionDuration
,
this
.
popGesture
,
this
.
binding
,
this
.
bindings
,
...
...
Please
register
or
login
to post a comment