danahartweg / flutter_bloc_list_manager

Extension to flutter_bloc that handles the underlying logic to filter and search list view data dynamically.
https://medium.com/flutter-community/building-a-package-to-manage-lists-with-flutter-bloc-7197e2dd7811
MIT License
15 stars 1 forks source link

Add support for basic filter modes #21

Closed danahartweg closed 4 years ago

danahartweg commented 4 years ago

I initially considered adding a defaultFilterMode property to the FilterConditionsBloc, but ultimately decided against that. The way filtering is implemented for now, it makes the most sense for or conditions to be the default. Plus, it's easy enough to adjust the filter mode when adding a new condition.

Note: See the filtering methodology section of the readme: https://github.com/danahartweg/flutter_bloc_list_manager/pull/21/files#diff-04c6e90faac2675aa89e2176d2eec7d8R146

Closes #5