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(
parentBox: parentBox!,
center: center!,
labelPainter: labelPainter!,
textScaleFactor: textScaleFactor!,
sizeWithOverflow: sizeWithOverflow!,
scale: activationAnimation!.value,
);
}