getHorizontalShift method
- RenderBox? parentBox,
- Offset? center,
- TextPainter? labelPainter,
- Animation<
double> ? activationAnimation, - double? textScaleFactor,
- Size? sizeWithOverflow,
override
Determines the best offset to keep this shape on the screen.
Override this method when the center of the value indicator should be shifted from the vertical center of the thumb.
Implementation
@override
double getHorizontalShift({
RenderBox? parentBox,
Offset? center,
TextPainter? labelPainter,
Animation<double>? activationAnimation,
double? textScaleFactor,
Size? sizeWithOverflow,
}) {
return _pathPainter.getHorizontalShift(
center: center!,
labelPainter: labelPainter!,
scale: activationAnimation!.value,
textScaleFactor: textScaleFactor!,
sizeWithOverflow: sizeWithOverflow!,
);
}