Add onFilteredCountChanged callback and restore prefixIcon#135
Merged
Conversation
Fires after every _filterAndSort cycle (initial load, search, sort, items update) with the count of currently visible rows. Implemented via ValueNotifier listener registered in initState and removed before dispose. Optional and null by default — fully backward-compatible. Bumps version to 7.5.29.
…ility Removed in 7.5.27 but still referenced in downstream packages. Restored as @deprecated so consumers can migrate without breaking builds.
📋 Changelog SummaryThis PR includes the following changes: ✨ Features
🐛 Bug Fixes
📊 Diff Stats
🤖 Auto-generated by changelog workflow |
📊 Test Coverage Report🎯 Dart/Flutter
🤖 Generated by coverage workflow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 introduces version 7.5.29 of the package, focusing on two main improvements: adding a new callback to
ThemedTable2for tracking filtered row counts, and restoring the deprecatedprefixIconparameter inThemedColorPickerfor backward compatibility. Both changes are fully backward-compatible and include updated documentation and thorough test coverage.Enhancements to ThemedTable2:
onFilteredCountChanged: void Function(int count)?callback toThemedTable2<T>. This callback is invoked after every filter-and-sort cycle (such as initial load, search, sort, or items update) and receives the current count of visible rows. This is useful for tracking or displaying the number of filtered items in real time. The feature is documented in the API reference, usage examples, and changelog, and is covered by comprehensive widget tests. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Backward Compatibility for ThemedColorPicker:
prefixIconparameter inThemedColorPickeras a deprecated property. Although this parameter was removed in a previous release, it is still referenced in downstream packages. The parameter is now accepted (but ignored), allowing dependent packages to remain build-compatible while they migrate away from using it. [1] [2] [3]Versioning and Documentation:
7.5.29and documented all changes in theCHANGELOG.mdfile. [1] [2]