Committed by
GitHub
Update get_main.dart
Duration missing as offAll() parameter https://github.com/jonataslaw/get/issues/250
Showing
1 changed file
with
3 additions
and
1 deletions
@@ -184,7 +184,8 @@ class GetImpl implements GetService { | @@ -184,7 +184,8 @@ class GetImpl implements GetService { | ||
184 | Object arguments, | 184 | Object arguments, |
185 | Bindings binding, | 185 | Bindings binding, |
186 | bool fullscreenDialog = false, | 186 | bool fullscreenDialog = false, |
187 | - Transition transition}) { | 187 | + Transition transition, |
188 | + Duration duration}) { | ||
188 | var route = (Route<dynamic> rota) => false; | 189 | var route = (Route<dynamic> rota) => false; |
189 | 190 | ||
190 | return global(id).currentState.pushAndRemoveUntil( | 191 | return global(id).currentState.pushAndRemoveUntil( |
@@ -197,6 +198,7 @@ class GetImpl implements GetService { | @@ -197,6 +198,7 @@ class GetImpl implements GetService { | ||
197 | name: '/' + page.toString().toLowerCase(), arguments: arguments), | 198 | name: '/' + page.toString().toLowerCase(), arguments: arguments), |
198 | fullscreenDialog: fullscreenDialog, | 199 | fullscreenDialog: fullscreenDialog, |
199 | transition: transition ?? defaultTransition, | 200 | transition: transition ?? defaultTransition, |
201 | + transitionDuration: duration ?? defaultDurationTransition, | ||
200 | ), | 202 | ), |
201 | predicate ?? route); | 203 | predicate ?? route); |
202 | } | 204 | } |
-
Please register or login to post a comment