handleThumbPressEndVertical method

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

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

Implementation

@override
void handleThumbPressEndVertical(Offset position, Velocity velocity) {
  _thicknessAnimationControllerV.reverse();
  super.handleThumbPressEndVertical(position, velocity);
  if (velocity.pixelsPerSecond.dy.abs() < 10 &&
      (position.dy - _pressStartAxisPositionV).abs() > 0) {
    HapticFeedback.mediumImpact();
  }
}