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

Added feature: Hide Filter Bar #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dvlprb2
Copy link

@dvlprb2 dvlprb2 commented Dec 31, 2024

Added Feature: Hide Filter Bar

Description

This PR introduces a new feature to allow dynamic control over the visibility of the filter bar in the PagedDataTable widget.

New Property:

  • hideFilterBar:
    • A bool property added to the PagedDataTableThemeData class.
    • Default value: false, ensuring backward compatibility.

Usage:

  • When hideFilterBar is set to true, the filter bar will not be rendered.
  • When hideFilterBar is false (default), the filter bar will remain visible.

Changes Made:

  1. Added hideFilterBar to PagedDataTableThemeData.
  2. Updated PagedDataTable to respect the hideFilterBar property when building the widget tree.

Motivation

This enhancement provides developers with the flexibility to hide the filter bar when it is not needed, improving the customization options for the PagedDataTable widget.

Testing

  • Verified that the filter bar is hidden when hideFilterBar is set to true.
  • Confirmed that the filter bar remains visible by default when hideFilterBar is not specified or set to false.

@tomasweigenast
Copy link
Owner

Thank you. I need more time to check out this but in the meantime you can use this PR as target when using paged_datatable: https://dart.dev/tools/pub/dependencies#git-packages

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.

Hide filter button when there is only ProgrammingTextFilter in the filter list
2 participants