Just added this arguments to improve the customization and make it translatable. Improved visual customization. Including remove custom function.
✨ allButtonText = 'All',
✨ applyButtonText = 'Apply',
✨ resetButtonText = 'Reset',
✨ selectedItemsText = 'selected item'
✨ Added button border radius argument
✨ Added action buttons box decoration argument
✨ Added button spacing argument
✨ Added custom remove function that returns the selected list items filtered by the user conditions.
📚 Updated ReadMe including the news arguments
I wish the font size of "All", "Reset" and "Apply" button can be adjusted. Right now, I think it is too large and will cause overflow on small screen device.
Is your feature request related to a problem? Please describe.
It would be very nice to be able to remove the "all" and "reset" buttons.
Describe the solution you'd like
A parameter in the constructor to allow you to remove the "all" and "reset" buttons if desired. If removed, the "Accept" button should be the only one remaining and could be automatically centred to the bottom middle.
Describe alternatives you've considered
I have tried removing the text from the button (using "resetButtonText" and "allButtonText"), but it's still showing the buttons. Maybe giving an empty string ("") could disable it.
Additional context
I am using the widget as a tag selector while in the creation of elements for my app, and it makes no sense to have the "all" button, I wouldn't want the users to set all the tags to a new element, usually they should add only 2-3.
Thanks for this lib, made my life super easy as I'm just mocking up something which needs a filter.
I am getting some overflow reporting on the apply button.
"A RenderFlex overflowed by 234 pixels on the right."
I am on an Android Moto g6,
I can fix it for my case by setting the width, but I'm hesitant to use that to resolve it for a real multi platform / device experience.
Maybe id like to do something like setting the margin myself, or enabling the text to auto scale to the device I am on?
hey there ,
the package is all good , thanks for that,
i was hoping if you can add one more feature that would be great help
--------------The Feature----------------
the user can select the multiple options right
can you add something like the user can select only one option
when he tries to select other option then other option should be automatically deselected
---basically user can select only one option-------
Is your feature request related to a problem? Please describe.
Currently Filterlist does have default shadow in Content Area That doesn't Go with My Apps Design Language, Please have an Option to Disable That
Describe the solution you'd like
Add Boolean to Turn that Default Shadow ON and OFF, for ex HideContentAreaShadow
Additional context
Here's Image that represent Default Shadow on Content Area
Describe the bug
Failed to compile this library on macos (m1) Monterey 12.0.1
Here are the errors I get when I use this library, but when I comment out the usage its working just fine.
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/filter_list-1.0.1/lib/src/theme/filter_list_delegate_theme.dart:37:5: Error: Type 'ListTileThemeData' not found.
ListTileThemeData? listTileTheme,
^^^^^^^^^^^^^^^^^
../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/filter_list-1.0.1/lib/src/theme/filter_list_delegate_theme.dart:84:9: Error: Type 'ListTileThemeData' not found.
final ListTileThemeData listTileTheme;
^^^^^^^^^^^^^^^^^
../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/filter_list-1.0.1/lib/src/filter_list_delegate.dart:252:27: Error: No named parameter with the name 'data'.
data: theme.listTileTheme,
^^^^
../../Downloads/flutter/packages/flutter/lib/src/material/list_tile.dart:44:9: Context: Found this candidate, but the arguments don't match.
const ListTileTheme({
^^^^^^^^^^^^^
../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/filter_list-1.0.1/lib/src/filter_list_delegate.dart:260:27: Error: No named parameter with the name 'data'.
data: theme.listTileTheme,
^^^^
../../Downloads/flutter/packages/flutter/lib/src/material/list_tile.dart:44:9: Context: Found this candidate, but the arguments don't match.
const ListTileTheme({
^^^^^^^^^^^^^
../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/filter_list-1.0.1/lib/src/theme/filter_list_delegate_theme.dart:37:5: Error: 'ListTileThemeData' isn't a type.
ListTileThemeData? listTileTheme,
^^^^^^^^^^^^^^^^^
../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/filter_list-1.0.1/lib/src/theme/filter_list_delegate_theme.dart:51:23: Error: Method not found: 'ListTileThemeData'.
listTileTheme ??= ListTileThemeData();
^^^^^^^^^^^^^^^^^
../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/filter_list-1.0.1/lib/src/theme/filter_list_delegate_theme.dart:84:9: Error: 'ListTileThemeData' isn't a type.
final ListTileThemeData listTileTheme;
^^^^^^^^^^^^^^^^^
../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/filter_list-1.0.1/lib/src/theme/filter_list_delegate_theme.dart:97:33: Error: 'ListTileThemeData' isn't a type.
..add(DiagnosticsProperty<ListTileThemeData>(
^^^^^^^^^^^^^^^^^
../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/filter_list-1.0.1/lib/src/theme/filter_list_delegate_theme.dart:102:33: Error: 'ListTileThemeData' isn't a type.
..add(DiagnosticsProperty<ListTileThemeData>(
^^^^^^^^^^^^^^^^^
Is your feature request related to a problem? Please describe.
It would be good to add option to customise close button appearance in order to make it consistent with the rest of application. There is already an option to customise close icon color, however it's not currently possible to change the icon itself.
Describe the solution you'd like
A builder for delivering the button would be perfect.
Is your feature request related to a problem? Please describe.
For me it is too much space, i would like the chips directly under the name and in the same time display how many are selected.
Make an option to display "selectedItemsCountOnBottom" boolean.