onDragging method
Implementation
@override
onDragging(DragUpdateDetails details, DragDirection direction, bool isOpen) {
if (animate) {
setState(() {
animate = false;
});
return;
}
// top drawer
if (activeDrawer == Drawers.top && direction == DragDirection.vertical) {
_dragTopDrawer(details, direction, isOpen);
return;
}
// bottom drawer
if (activeDrawer == Drawers.bottom && direction == DragDirection.vertical) {
_dragBottomDrawer(details, direction, isOpen);
return;
}
// left drawer
if (activeDrawer == Drawers.left && direction == DragDirection.horizontal) {
_dragLeftDrawer(details, direction, isOpen);
return;
}
// right drawer
if (activeDrawer == Drawers.right && direction == DragDirection.horizontal) {
_dragRightDrawer(details, direction, isOpen);
return;
}
}