-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
discussionOpen discussion for a specific topicOpen discussion for a specific topicenhancementNew feature or requestNew feature or requestfeedback wantedLooking for feedback from the communityLooking for feedback from the community
Milestone
Description
Is your feature request related to a problem? Please describe.
I often find myself in the situation where I need both bloc builders and bloc listeners in the same widget tree, e.g. for showing a loading indicator (builder) and displaying a snackbar on success (listener).
Describe the solution you'd like
A BlocBuilderListener Widget that accepts both a builder function and a listener would greatly reduce the clutter in my code and also reduce the overhead of having two stateful widgets that basically do the same. Alternatively, you could add a listener parameter to the existing BlocBuilder widget.
dhruv-kabariya
Metadata
Metadata
Assignees
Labels
discussionOpen discussion for a specific topicOpen discussion for a specific topicenhancementNew feature or requestNew feature or requestfeedback wantedLooking for feedback from the communityLooking for feedback from the community