DragSortView constructor

DragSortView(
  1. List<DragBean> data, {
  2. Key? key,
  3. double? width,
  4. double space = 5,
  5. EdgeInsets padding = EdgeInsets.zero,
  6. EdgeInsets margin = EdgeInsets.zero,
  7. required IndexedWidgetBuilder itemBuilder,
  8. required WidgetBuilder initBuilder,
  9. OnDragListener? onDragListener,
})

create DragSortView. It is recommended to use a thumbnail picture,because the original picture is too large, it may cause repeated loading and cause flashing. 建议使用略微缩图,因为原图太大可能会引起重复加载导致闪动.

Implementation

DragSortView(
  this.data, {
  Key? key,
  this.width,
  this.space = 5,
  this.padding = EdgeInsets.zero,
  this.margin = EdgeInsets.zero,
  required this.itemBuilder,
  required this.initBuilder,
  this.onDragListener,
}) : super(key: key);