flutter_reorderable_grid_view 2.0.0-dev.5 copy "flutter_reorderable_grid_view: ^2.0.0-dev.5" to clipboard
flutter_reorderable_grid_view: ^2.0.0-dev.5 copied to clipboard

outdated

Reordering all children inside ReorderableGridView. By default the reorder is animated.

Pub Version Codecov GitHub branch checks state

Package for having animated Drag and Drop functionality for every type of GridView and Wrap.

Also you have the option to have an animation, when adding or removing children inside your GridView.

Features #

Use this package in your Flutter App to:

Getting started #

Usage #

Supported Widgets #

  • GridViews
    • GridView
    • GridView.count
    • GridView.extent
    • GridView.builder

Parameters #

Parameter Description Default Value
children Displays all given children that are build inside a Wrap or GridView. Don't forget a unique key for every child.
-
lockedIndices Define all children that can't be moved while dragging. You need to add the index of this child in a list.
enableAnimation Enables the animation when changing the positions of children after drag and drop. true
enableLongPress Decides if the user needs a long press to move the item around. true
longPressDelay Specify the delay to move an item when enabling long press. 500 ms
dragChildBoxDecoration When a child is dragged, you can override the default BoxDecoration, e. g. if your children have another shape.
-
onReorder Called after drag and drop was released. Contains a list of OrderUpdateEntity that has information about the old and new index. See more on the example main.dart
-
enableReorder Enables the functionality to reorder the children. true

Future Plans #

With this package, I tried to simplify the logic for adding drag and drop to GridViews.

I also added an animation when adding or removing children, but this feature is currently only supported for GridViews.

If you have feature requests or found some issues, feel free and open your issues in the GitHub project.

Thank you for using this package.

145
likes
0
pub points
95%
popularity

Publisher

verified publisherkarvulf.com

Reordering all children inside ReorderableGridView. By default the reorder is animated.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_reorderable_grid_view