fix(ui): fix StreamChannel not available in various poll dialogs #2082
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request addresses a bug fix in the
stream_chat_flutter
package, ensuring that theStreamChannel
is properly available in the widget tree for various poll-related dialogs. The changes primarily involve wrapping theValueListenableBuilder
in aStreamChannel
widget to provide the necessary context.Bug Fixes:
packages/stream_chat_flutter/CHANGELOG.md
: Added a note about the fix forStreamChannel
not being available in the widget tree for various poll options.Poll Dialogs:
packages/stream_chat_flutter/lib/src/poll/stream_poll_comments_dialog.dart
: WrappedValueListenableBuilder
in aStreamChannel
widget to ensure the channel context is available. [1] [2]packages/stream_chat_flutter/lib/src/poll/stream_poll_option_votes_dialog.dart
: WrappedValueListenableBuilder
in aStreamChannel
widget to ensure the channel context is available. [1] [2]packages/stream_chat_flutter/lib/src/poll/stream_poll_options_dialog.dart
: WrappedValueListenableBuilder
in aStreamChannel
widget to ensure the channel context is available. [1] [2]packages/stream_chat_flutter/lib/src/poll/stream_poll_results_dialog.dart
: WrappedValueListenableBuilder
in aStreamChannel
widget to ensure the channel context is available. [1] [2]