items_selector 1.1.0
items_selector: ^1.1.0 copied to clipboard
A Flutter package for selecting single or multiple items from a list or grid
1.1.0 #
Added #
listConfigurationproperty introduced inSingleListItemSelector&MultiListItemSelector.- This allows users to switch from
Row/ColumntoListView, providing greater flexibility and access toListViewfeatures such as scrolling behavior, physics, controllers, and more. - If
listConfigurationis not provided, the default behavior remains unchanged.
- This allows users to switch from
Changed #
- Refactored codebase for better readability and maintainability. No functional changes were made.
- Updated example files to reflect recent improvements and demonstrate new capabilities.
Migration Notes #
- No breaking changes. Upgrading to this version will not cause any compilation errors or issues.
1.0.1 #
Fixed #
- Corrected the image URL in the README to properly display on pub.dev.
This update does not change any functionality but ensures that documentation is correctly presented to users.
1.0.0 #
Added #
- Introduced
SingleWrapItemSelectorandMultiWrapItemSelectorwidgets, providing flexible item arrangement using theWraplayout.
Changed #
- Removed default padding applied to all widgets to give users more control over layout spacing.
- Removed
SingleChildScrollViewfromSingleListItemSelectorandMultiListItemSelectorto avoid unintended scrolling behavior.
Fixed #
- General improvements to layout consistency and flexibility.
0.2.0 #
Changed #
- Refactored
SingleGridItemSelector&MultiGridItemSelector- Properties related to
GridView(such asgridDelegate,controller,physics, etc.) have been removed fromSingleGridItemSelectorandMultiGridItemSelectorand moved into a new class:GridConfiguration. - Both widgets now accept a
GridConfigurationinstance instead of multiple individual GridView-related properties.
- Properties related to
Added #
- New
GridConfigurationclass- Encapsulates all
GridViewconfiguration properties, makingSingleGridItemSelectorandMultiGridItemSelectorcleaner and more modular. - Simplifies the API by grouping all grid-related options into a single parameter.
- Encapsulates all
Migration Guide #
-
Instead of passing
gridDelegate,controller,physics, etc., directly toSingleGridItemSelectororMultiGridItemSelector, create aGridConfigurationinstance and pass it as a parameter.Before:
SingleGridItemSelector<int>( gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2), padding: EdgeInsets.all(8), controller: ScrollController(), ... ) MultiGridItemSelector<int>( gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3), padding: EdgeInsets.symmetric(horizontal: 16), controller: ScrollController(), ... )After:
SingleGridItemSelector<int>( gridConfiguration: GridConfiguration( gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2), padding: EdgeInsets.all(8), controller: ScrollController(), ... ) ) MultiGridItemSelector<int>( gridConfiguration: GridConfiguration( gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3), padding: EdgeInsets.symmetric(horizontal: 16), controller: ScrollController(), ... ) )
0.1.2 #
- Add examples
0.1.1 #
- Updated
README.mdfor better clarity.
0.0.1 #
- release initial version