GetMaterialApp.router vs GetMaterialApp #1835
Unanswered
manikantag
asked this question in
Q&A
Replies: 3 comments 6 replies
-
do you find a solution? I have the same problem and I can´t solve it :( |
Beta Was this translation helpful? Give feedback.
5 replies
-
The first uses the api from Navigator 2, the second from Navigator 1 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Sorry, i had to bump |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
How is
GetMaterialApp.router
different fromGetMaterialApp
?When I override
GetMiddleware.redirectDelegate()
, it was called only when I useGetMaterialApp.router
, but not when I usedGetMaterialApp
. I need to override this instead ofGetMiddleware.redirect()
as I need to wait for theAuthController
(which uses Firebase Auth).Also, I can't register
onGenerateRoute
when usingGetMaterialApp.router
(to addressTo use the Navigator API with named routes (pushNamed, pushReplacementNamed, or pushNamedAndRemoveUntil), the Navigator must be provided with an onGenerateRoute handler.
issue when usingGet.toNamed()
)Thanks,
Manikanta G
Beta Was this translation helpful? Give feedback.
All reactions