GlobalKey<State> alternative? #75
-
I want to replicate this in ReArch: globalKey.currentState?.requestFocus(); Is there a way for getting a |
Beta Was this translation helpful? Give feedback.
Answered by
GregoryConrad
Jan 12, 2024
Replies: 1 comment 6 replies
-
No, and you probably shouldn't be using Instead, provide whatever state you have down to the rest of the widget tree via scoping state. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
GregoryConrad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, and you probably shouldn't be using
GlobalKey
s 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.