Closed mpenza closed 10 months ago
Seems like MyRouter.createRouter()
may have caused this issue but I am not sure. Try making this into a stateful widget and assign MyRouter.createRouter()
to a variable in the state and use that variable here instead!
That fixed it. Thank you!
When adaptive_theme is used with go_router, and the theme changes, the router is re-initialized and returns to the default route.
Here is my root app in main.dart.
Everything work fine before integrating go_router and widgets would update dynamically on theme change.