-
Notifications
You must be signed in to change notification settings - Fork 163
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
fix: 🐛 correct removal of newSuggestions listener #193
fix: 🐛 correct removal of newSuggestions listener #193
Conversation
Thanks for the PR @jonasbadstuebner. Can you please tell me more about the scenario where you faced the error? What I have understood is that the extension |
With #191 being merged, this is not a "real" problem anymore, the flutter_chatview/lib/src/widgets/suggestions/suggestion_list.dart Lines 96 to 97 in 08da145
I noticed the mistake because the example app threw the error: You can reproduce this on 232214c by wrapping
so it becomes return Container(
child: SuggestionList(
suggestions: value,
), and hot reloading the app. This will produce the following error: error log
As I said, this is not a problem anymore on main, but the listener is currently also not removed, so it is not working as intended. |
Yes, that's a good catch @jonasbadstuebner. |
dcc3ad9
to
f08803b
Compare
I added the
Also about
|
Description
When disposing the Widget this to provide failed, thus the listener did not get removed properly.
This change fixes the call to
removeListeners
.Checklist
fix:
,feat:
,docs:
etc).docs
and added dartdoc comments with///
.examples
ordocs
.Breaking Change?
Related Issues
#187