Skip to content

Add onFilteredCountChanged callback and restore prefixIcon#135

Merged
ManuelRomeroA merged 2 commits into
mainfrom
development
Apr 29, 2026
Merged

Add onFilteredCountChanged callback and restore prefixIcon#135
ManuelRomeroA merged 2 commits into
mainfrom
development

Conversation

@ManuelRomeroA
Copy link
Copy Markdown
Contributor

This pull request introduces version 7.5.29 of the package, focusing on two main improvements: adding a new callback to ThemedTable2 for tracking filtered row counts, and restoring the deprecated prefixIcon parameter in ThemedColorPicker for backward compatibility. Both changes are fully backward-compatible and include updated documentation and thorough test coverage.

Enhancements to ThemedTable2:

  • Added an optional onFilteredCountChanged: void Function(int count)? callback to ThemedTable2<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:

  • Restored the prefixIcon parameter in ThemedColorPicker as 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:

  • Updated the package version to 7.5.29 and documented all changes in the CHANGELOG.md file. [1] [2]

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.
@github-actions
Copy link
Copy Markdown

📋 Changelog Summary

This PR includes the following changes:

✨ Features

🐛 Bug Fixes

📊 Diff Stats

Metric Count
📄 Files changed 7
🟢 Insertions $\color{green}\textsf{+194}$
🔴 Deletions $\color{red}\textsf{-1}$

🤖 Auto-generated by changelog workflow

@github-actions
Copy link
Copy Markdown

📊 Test Coverage Report

🎯 Dart/Flutter

Metric Value
Coverage 16.5%
Lines covered 10864 / 127
Lines missing -10737

🤖 Generated by coverage workflow

@ManuelRomeroA ManuelRomeroA merged commit 6202669 into main Apr 29, 2026
4 checks passed
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

Successfully merging this pull request may close these issues.

1 participant