Open kewur opened 1 month ago
looks to be the same issue https://github.com/flutter/flutter/issues/113757 but havent found a workaround yet
I got the same error when using pageBuilder with a custom transition page. I solved it by adding the state.pageKey to the custom transition page.
You could try this:
StatefulShellRoute.indexedStack(
builder: (context, state, navigationShell) {
return ScaffoldWithNestedNavigation(
key: state.pageKey,
navigationShell: navigationShell,
);
},
// the rest of your code
),
I know there was a bug fix that was related to this, the workaround for that was making gorouter a global variable. However, I'm not using MaterialApp, but cuportino app. After switching everything over, when I navigate between tabs, I the screen crashes and I get this error.
this is the same example in Cuportino form
any idea as to why this works on material but not on cuportino?