reorderable_grid_view library


DragWidgetBuilder = Widget Function(int index, Widget child)
Build the drag widget under finger when dragging. The index here represents the index of current dragging widget The child here represents the current index widget
OnDragStart = void Function(int dragIndex)
The drag and drop life cycle.
PlaceholderBuilder = Widget Function(int dropIndex, int dropInddex, Widget dragWidget)
build the target placeholder
ScrollSpeedController = double Function(int timeInMilliSecond, double overSize, double itemSize)
Control the scroll speed if drag over the boundary. We can pass time here?? timeInMilliSecond is the time passed. overPercentage is the scroll over the boundary percentage overSize is the pixel drag over the boundary itemSize is the drag item size Maybe you need decide the scroll speed by the given param. return how many pixels when scroll in 14ms(maybe a frame). 5 is the default