Skip to content
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

FilterState.filters stream not updated on FilterState.clear #63

Open
erf opened this issue Mar 9, 2023 · 0 comments
Open

FilterState.filters stream not updated on FilterState.clear #63

erf opened this issue Mar 9, 2023 · 0 comments

Comments

@erf
Copy link

erf commented Mar 9, 2023

Describe the bug 🐛

I have a FilterState and listen to the filterState.filters stream for updates. When adding filters i receive updates, but not when calling filterState.clear.

To Reproduce 🔍

  1. create a FilterState instance
  2. listen to the FilterState.filters stream using a StreamBuilder
  3. add filters and confirm we receive stream updates
  4. add a button which calls filterState.clear and confirm the StreamBuilder does not receive an update

Expected behavior 💭

I'd expect StreamBuilder to receive an update when calling filterState.clear

Screenshots 🖥

Environment:

  • OS: iOS
  • Library Version ^0.2.3

Additional context

flutter --version

Flutter 3.7.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 12cb4eb7a0 (8 days ago) • 2023-03-01 10:29:26 -0800
Engine • revision ada363ee93
Tools • Dart 2.19.3 • DevTools 2.20.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant