DragSortView constructor
DragSortView(
- List<
DragBean> data, { - Key? key,
- double? width,
- double space = 5,
- EdgeInsets padding = EdgeInsets.zero,
- EdgeInsets margin = EdgeInsets.zero,
- required IndexedWidgetBuilder itemBuilder,
- required WidgetBuilder initBuilder,
- 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);