onHorizontalDragUpdate method
Implementation
void onHorizontalDragUpdate(DragUpdateDetails details) {
translateX = (translateX + details.delta.dx).clamp(-maxDragDistance, 0.0);
setState(() {});
}
void onHorizontalDragUpdate(DragUpdateDetails details) {
translateX = (translateX + details.delta.dx).clamp(-maxDragDistance, 0.0);
setState(() {});
}