Skip to content

GlobalKey<State> alternative? #75

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

You must be logged in to vote

No, and you probably shouldn't be using GlobalKeys for this anyways since they act like global/static variables.

Instead, provide whatever state you have down to the rest of the widget tree via scoping state.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@GregoryConrad
Comment options

@GregoryConrad
Comment options

@GregoryConrad
Comment options

@busslina
Comment options

@GregoryConrad
Comment options

Answer selected by GregoryConrad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants