handleThumbPressEndHorizontal method

  1. @override
void handleThumbPressEndHorizontal(
  1. Offset position,
  2. Velocity velocity
)
override

Handler called when a long press on horizontal scrollbar has ended.

Implementation

@override
void handleThumbPressEndHorizontal(Offset position, Velocity velocity) {
  _thicknessAnimationControllerH.reverse();
  super.handleThumbPressEndHorizontal(position, velocity);
  if (velocity.pixelsPerSecond.dx.abs() < 10 &&
      (position.dx - _pressStartAxisPositionH).abs() > 0) {
    HapticFeedback.mediumImpact();
  }
}