I'm using a custom navigator in my flutter app, and it seems to not play well with this plugin - whenever a theme is switched (using either nextTheme() or setThemeId(themeId), the app reverts to the initial route of the navigator and the initial state of that route. No state or route information is saved. Is there any workaround for this? Using flutter 2.2.1
I have two reproducible examples, one with a custom navigator and one without:
I'm using a custom navigator in my flutter app, and it seems to not play well with this plugin - whenever a theme is switched (using either
nextTheme()
orsetThemeId(themeId)
, the app reverts to the initial route of the navigator and the initial state of that route. No state or route information is saved. Is there any workaround for this? Using flutter 2.2.1I have two reproducible examples, one with a custom navigator and one without:
With custom navigator:
Without custom navigator (using default routes in root material app):