Skip to content

Commit

Permalink
🔖 Release package 1.0.2
Browse files Browse the repository at this point in the history
⚡️ Make compatible with Flutter 3.0.0
✏️ Fix typos.
🐫 Change some properties to camelcase.
🚨 Add dart analysis.
 🚨 Fixed lint warnings.
  • Loading branch information
TheAlphamerc committed Jul 2, 2022
1 parent 13c0d8f commit 94e6c5b
Show file tree
Hide file tree
Showing 28 changed files with 1,362 additions and 399 deletions.
66 changes: 36 additions & 30 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,51 @@
## [1.0.2] - 02 Jul 2022
- Make compatible with Flutter 3.0.0
- Add `applyButtonText` prop to change Apply button text in FilterListDelegate
- Add copyWith method in `FilterListDelegateThemeData` to copy theme data
- Add copyWith method in `FilterListThemeData` to copy theme data


## [1.0.1] - 18 Jan 2022

- 🚨 Breaking change

- Removed `selectedChipTextStyle` parameter
- Removed `unselectedChipTextStyle` parameter
- Removed `selectedTextBackgroundColor` parameter
- Removed `unselectedTextbackGroundColor` parameter
- Removed `hideHeaderText` parameter
- Removed `closeIconColor` parameter
- Removed `hideHeaderAreaShadow` parameter
- Removed `headerTextColor` parameter
- Removed `searchFieldBackgroundColor` parameter
- Removed `searchFieldTextStyle` parameter
- Removed `headerTextStyle` parameter
- Removed `searchFieldHintText` parameter
- Removed `applyButonTextBackgroundColor` parameter
- Removed `buttonRadius` parameter
- Removed `buttonSpacing` parameter
- Removed `controlButtonTextStyle` parameter
- Removed `applyButtonTextStyle` parameter
- Removed `applyButtonText` parameter
- Removed `wrapAlignment` parameter
- Removed `wrapCrossAxisAlignment` parameter
- Removed `wrapSpacing` parameter
- Removed `borderRadius` parameter

> Above removed parameters are moved to the newly created theme parameter
- Removed `selectedChipTextStyle` prop
- Removed `unselectedChipTextStyle` prop
- Removed `selectedTextBackgroundColor` prop
- Removed `unselectedTextBackgroundColor` prop
- Removed `hideHeaderText` prop
- Removed `closeIconColor` prop
- Removed `hideHeaderAreaShadow` prop
- Removed `headerTextColor` prop
- Removed `searchFieldBackgroundColor` prop
- Removed `searchFieldTextStyle` prop
- Removed `headerTextStyle` prop
- Removed `searchFieldHintText` prop
- Removed `applyButonTextBackgroundColor` prop
- Removed `buttonRadius` prop
- Removed `buttonSpacing` prop
- Removed `controlButtonTextStyle` prop
- Removed `applyButtonTextStyle` prop
- Removed `applyButtonText` prop
- Removed `wrapAlignment` prop
- Removed `wrapCrossAxisAlignment` prop
- Removed `wrapSpacing` prop
- Removed `borderRadius` prop

> Above removed parameters are moved to the newly created theme prop
- Replace `ItemSearchDelegate<T>` with `SearchPredict<T>` method

- Added Theme
- `FilterListTheme` for filter list widget theme
- `ChoiceChipTheme` for choice chip theme.
- `HeaderTheme` for Header widget theme
- `ControlButtonBarTheme` for control button bar theme
- `ControlButtonTheme` for control button theme
- `FilterListDelegateTheme` for filter list delegate theme
- `controlButtons` parameter to display/hide control buttons (All, Reset)
- `controlButtons` prop to display/hide control buttons (All, Reset)
- Added `FilterListDelegate.show` delegate to search/filter data in new screen



## [1.0.0] 21 May 2021

- Improved visual customization. Including remove custom function.
Expand Down Expand Up @@ -97,9 +103,9 @@
- Added pop-up height

- Added pop-up width
- Added header hide parameter
- Added search field hide parameter
- Added cross icon hide parameter
- Added header hide prop
- Added search field hide prop
- Added cross icon hide prop

## [0.0.2] - 02 Mar 2020

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Empty screen | FilterListDialog | Selected chip | Result fro
| height | `double` | Set height of filter dialog.|
| width | `double` | Set width of filter dialog.|
| hideCloseIcon|`bool`|Hide close Icon.|
| hideheader|`bool`|Hide complete header section from filter dialog.|
| hideHeader|`bool`|Hide complete header section from filter dialog.|
| headerCloseIcon|`Widget`|Widget to close the dialog.|
| hideSelectedTextCount|`bool`|Hide selected text count.|
| hideSearchField|`bool`|Hide search text field.|
Expand All @@ -219,13 +219,13 @@ Empty screen | FilterListDialog | Selected chip | Result fro
| choiceChipLabel|`String Function(T item)`| Display text on choice chip.|
| validateSelectedItem|`bool Function(List<T>? list, T item)`| Identifies weather a item is selected or not|
| onItemSearch|`List<T> Function(List<T>? list, String text)`| Perform search operation and returns filtered list|
| choiceChipBuilder|`Widget Function(BuildContext context, T? item, bool? iselected)`|The choiceChipBuilder is a builder to design custom choice chip.|
| choiceChipBuilder|`Widget Function(BuildContext context, T? item, bool? isSelected)`|The choiceChipBuilder is a builder to design custom choice chip.|
| onApplyButtonClick|`Function(List<T> list)`|Returns list of items when apply button is clicked|
| validateRemoveItem|`List<T> Function(List<T>? list, T item)`| Function Delegate responsible for delete item from list |
| resetButtonText|`String`| Reset button text to customize or translate |
| allButtonText|`String`| All button text to customize or translate |
| selectedItemsText|`String`| Selected items text to customize or translate |
| controlButtons|`List<ContolButtonType>`| configure which control button needs to be display on bottom of dialog along with 'Apply' button.|
| controlButtons|`List<ControlButtonType>`| configure which control button needs to be display on bottom of dialog along with 'Apply' button.|
| insetPadding| `EdgeInsets`| The amount of padding added to the outside of the dialog.|
| themeData|`FilterListThemeData`| Configure theme of filter dialog and widget.|
| choiceChipTheme|`ChoiceChipThemeData`| Configure theme of choice chip.|
Expand Down
Loading

0 comments on commit 94e6c5b

Please sign in to comment.