Closed Milad-Akarie closed 2 years ago
Thank you for your commit.
After some reading, I think maybe it's better to put option dragEnabled
and dragStartDelay
to ReorderableGridWidgetMixin
, because those option is global
.
Maybe you can try like the option placeholderBuilder
.
Add in ReorderableGridWidgetMixin
:
mixin ReorderableGridWidgetMixin on StatefulWidget {
Duration? get dragStartDelay;
}
And ReorderableGridStateMixin
:
Duration get dragStartDelay=> widget.dragStartDelay?? kLongPressTimeout;
And in ReorderableItemViewState
can access like this:
_listState.dragStartDelay
@huhuang03 done
Thank you.
Add dragStartDelay duration option to control how long until the drag starts Add dragEnabled option to enable or disable dragging bump up version to 2.2.3-alpha.4