-
-
Notifications
You must be signed in to change notification settings - Fork 153
Questions: Best practice of getting app buildContext? #256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You want to access the Build context from your Business logic?
In General you should avoid that.
You can check the code of my interaction_manager where I do that do displays dialogs from non UI code
Am 15. Feb. 2022, 13:30 +0100 schrieb Itai Shalom ***@***.***>:
… The documentation states that:
"The fact that you need a BuildContext to access your objects made it inaccessible from the Business layer."
But it is unclear what is the best practice?
If I wish to access the app context from service (not from a widget), what is the best practice to achieve it?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
The truth is that i do want to show dialog from non ui code. Where can I see that example? |
Check for the interaction_manager package on pub
Am 15. Feb. 2022, 18:51 +0100 schrieb Itai Shalom ***@***.***>:
… The truth is that i do want to show dialog from non ui code. Where can I see that example?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation states that:
"The fact that you need a BuildContext to access your objects made it inaccessible from the Business layer."
But it is unclear what is the best practice?
If I wish to access the app context from service (not from a widget), what is the best practice to achieve it?
The text was updated successfully, but these errors were encountered: