Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Conversation

@stan-at-work
Copy link

@stan-at-work stan-at-work commented Dec 17, 2024

This fixes: #121

This adds:

  • Missing parameter: filterWidgetBuilder added to customize a pluto column filter.
  • Added clearIcon and onClear, if onClear is used then a clear icon shows in the textfield
  • Added filterWidgetDelegate, the filterWidgetDelegate is a delegate that has 2 contrcutors.
  /// This is the default filter widget delegate
  const PlutoFilterColumnWidgetDelegate.textField({
    this.filterHintText,
    this.filterHintTextColor,
    this.filterSuffixIcon,
    this.onFilterSuffixTap,
    this.clearIcon = const Icon(Icons.clear),
    this.onClear,
  }) : filterWidgetBuilder = null;

  /// If you don't want a custom widget
  const PlutoFilterColumnWidgetDelegate.builder({
    this.filterWidgetBuilder,
  })  : filterSuffixIcon = null,
        onFilterSuffixTap = null,
        filterHintText = null,
        filterHintTextColor = null,
        clearIcon = const Icon(Icons.clear),
        onClear = null;

Those parameters are removed from the PlutoColumn class and replaced by a filterWidgetDelegate.

@doonfrs doonfrs merged commit c72a18a into doonfrs:master Jan 2, 2025
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Filters on columns - add x clear button to filter textfield.

2 participants