Skip to content

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

Closed
itaishalom opened this issue Feb 15, 2022 · 3 comments
Closed

Questions: Best practice of getting app buildContext? #256

itaishalom opened this issue Feb 15, 2022 · 3 comments

Comments

@itaishalom
Copy link

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?

@itaishalom itaishalom changed the title Questions: Best practice of Global context? Questions: Best practice of getting app buildContext? Feb 15, 2022
@escamoteur
Copy link
Collaborator

escamoteur commented Feb 15, 2022 via email

@itaishalom
Copy link
Author

The truth is that i do want to show dialog from non ui code. Where can I see that example?

@escamoteur
Copy link
Collaborator

escamoteur commented Feb 15, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants