You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And in my another file b.dart I have import the main.dart. But found the _globalKey has been initialized again and it's not the same with the rendered one.
Then I moved the code above to a new single file and import it in main.dart and b.dart. There are only one _globalKey at this time. So I can use it to do things I want.
I guess maybe the entry point file maybe not recorded in the loaded scripts so the vm load it again? Hope someone else can help me about this.
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Hi all,
I found something strange on my application.
In my entry point file (main.dart) I have class A like
And in my another file b.dart I have import the main.dart. But found the _globalKey has been initialized again and it's not the same with the rendered one.
Then I moved the code above to a new single file and import it in main.dart and b.dart. There are only one _globalKey at this time. So I can use it to do things I want.
I guess maybe the entry point file maybe not recorded in the loaded scripts so the vm load it again? Hope someone else can help me about this.
The text was updated successfully, but these errors were encountered: