Replies: 1 comment
-
As long as you check if the context is mounted before using it (and after every await), it's safe. The strategy should be to pick a build context that will live as long as your functionality that requires a build context. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm currently working on a project using Flutter_hooks and the windows_manager package. I need to override some methods from WindowListener provided by windows_manager outside of the build method. However, I still need to access the context within these overridden methods.
Could you please provide guidance or a solution on how to achieve this with Flutter_hooks? Specifically, I'm looking for a way to safely access context outside of the build method.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions