Skip to content

Are nested Consumers endorsed? #1199

Answered by rrousselGit
jacob-emery asked this question in Q&A
Discussion options

You must be logged in to vote

It's fine.

Although I'd personally prefer writing slightly more code and extracting every Consumer(...) into a custom extends ConsumerWidget class

I like to split big widgets early, and it achieves the same effect – on top of maybe allowing const constructors if your widget only depends on providers

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jacob-emery
Comment options

You must be logged in to vote
0 replies
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