Skip to content

I Can't use a NestedScrollView with a GlobalKey to store state #427

Closed Answered by GerritBurgerDev
GerritBurgerDev asked this question in Q&A
Discussion options

You must be logged in to vote

Turns out this was more of a GoRouter issue. The nested scroll keys are being re-used on navigation push and on go it will replace and destroy the key. Thus, the solution was to use StatefulShellRoutes to preserve my widget state and so also the key.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GerritBurgerDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant