Showing
4 changed files
with
7 additions
and
7 deletions
@@ -15,11 +15,11 @@ class GetMaterialController extends GetxController { | @@ -15,11 +15,11 @@ class GetMaterialController extends GetxController { | ||
15 | bool defaultOpaqueRoute = true; | 15 | bool defaultOpaqueRoute = true; |
16 | 16 | ||
17 | Transition defaultTransition; | 17 | Transition defaultTransition; |
18 | - Duration defaultTransitionDuration = Duration(milliseconds: 400); | 18 | + Duration defaultTransitionDuration = Duration(milliseconds: 300); |
19 | Curve defaultTransitionCurve = Curves.easeOutQuad; | 19 | Curve defaultTransitionCurve = Curves.easeOutQuad; |
20 | 20 | ||
21 | Curve defaultDialogTransitionCurve = Curves.easeOutQuad; | 21 | Curve defaultDialogTransitionCurve = Curves.easeOutQuad; |
22 | - Duration defaultDialogTransitionDuration = Duration(milliseconds: 400); | 22 | + Duration defaultDialogTransitionDuration = Duration(milliseconds: 300); |
23 | 23 | ||
24 | final routing = Routing(); | 24 | final routing = Routing(); |
25 | 25 |
@@ -132,7 +132,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -132,7 +132,7 @@ class GetMaterialApp extends StatelessWidget { | ||
132 | binding: unknownRoute.binding, | 132 | binding: unknownRoute.binding, |
133 | bindings: unknownRoute.bindings, | 133 | bindings: unknownRoute.bindings, |
134 | transitionDuration: | 134 | transitionDuration: |
135 | - (transitionDuration ?? unknownRoute.transitionDuration), | 135 | + (unknownRoute.transitionDuration ?? Get.defaultTransitionDuration), |
136 | transition: unknownRoute.transition, | 136 | transition: unknownRoute.transition, |
137 | popGesture: unknownRoute.popGesture, | 137 | popGesture: unknownRoute.popGesture, |
138 | fullscreenDialog: unknownRoute.fullscreenDialog, | 138 | fullscreenDialog: unknownRoute.fullscreenDialog, |
@@ -150,7 +150,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -150,7 +150,7 @@ class GetMaterialApp extends StatelessWidget { | ||
150 | binding: match.route.binding, | 150 | binding: match.route.binding, |
151 | bindings: match.route.bindings, | 151 | bindings: match.route.bindings, |
152 | transitionDuration: | 152 | transitionDuration: |
153 | - (transitionDuration ?? match.route.transitionDuration), | 153 | + (match.route.transitionDuration ?? Get.defaultTransitionDuration), |
154 | transition: match.route.transition, | 154 | transition: match.route.transition, |
155 | popGesture: match.route.popGesture, | 155 | popGesture: match.route.popGesture, |
156 | fullscreenDialog: match.route.fullscreenDialog, | 156 | fullscreenDialog: match.route.fullscreenDialog, |
@@ -171,7 +171,7 @@ class GetMaterialApp extends StatelessWidget { | @@ -171,7 +171,7 @@ class GetMaterialApp extends StatelessWidget { | ||
171 | binding: match.route.binding, | 171 | binding: match.route.binding, |
172 | bindings: match.route.bindings, | 172 | bindings: match.route.bindings, |
173 | transitionDuration: | 173 | transitionDuration: |
174 | - (transitionDuration ?? match.route.transitionDuration), | 174 | + (match.route.transitionDuration ?? Get.defaultTransitionDuration), |
175 | transition: match.route.transition, | 175 | transition: match.route.transition, |
176 | popGesture: match.route.popGesture, | 176 | popGesture: match.route.popGesture, |
177 | fullscreenDialog: match.route.fullscreenDialog, | 177 | fullscreenDialog: match.route.fullscreenDialog, |
@@ -14,7 +14,7 @@ import 'transitions_type.dart'; | @@ -14,7 +14,7 @@ import 'transitions_type.dart'; | ||
14 | class GetPageRoute<T> extends PageRoute<T> { | 14 | class GetPageRoute<T> extends PageRoute<T> { |
15 | GetPageRoute({ | 15 | GetPageRoute({ |
16 | RouteSettings settings, | 16 | RouteSettings settings, |
17 | - this.transitionDuration = const Duration(milliseconds: 400), | 17 | + this.transitionDuration = const Duration(milliseconds: 300), |
18 | this.opaque = true, | 18 | this.opaque = true, |
19 | this.parameter, | 19 | this.parameter, |
20 | this.curve, | 20 | this.curve, |
@@ -31,7 +31,7 @@ class GetPage { | @@ -31,7 +31,7 @@ class GetPage { | ||
31 | this.alignment, | 31 | this.alignment, |
32 | this.parameter, | 32 | this.parameter, |
33 | this.opaque = true, | 33 | this.opaque = true, |
34 | - this.transitionDuration = const Duration(milliseconds: 400), | 34 | + this.transitionDuration, |
35 | this.popGesture, | 35 | this.popGesture, |
36 | this.binding, | 36 | this.binding, |
37 | this.bindings, | 37 | this.bindings, |
-
Please register or login to post a comment