Skip to content

Need help with structuring ProviderScope for a production package. #3421

Closed Answered by rrousselGit
thisisamank asked this question in Q&A
Discussion options

You must be logged in to vote

Your MyProvider should be above MaterialApp.
You probably shouldn't be overriding MaterialTheme in MyProvider either. But rather expose a custom Theme object that your widgets will use.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thisisamank
Comment options

Answer selected by thisisamank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants