beforeIndicatorsPaint method
dynamic
beforeIndicatorsPaint(
- Canvas canvas,
- Size size
)
override
Implementation
@override
beforeIndicatorsPaint(Canvas canvas, Size size) {
if (translate) {
final xTranslation = netDragPercent * pagesLength * (-width - space);
canvas.transform(Matrix4.translationValues(xTranslation, 0, 0).storage);
}
if (rotate) {
if (slideDirection == SlideDirection.left_to_right) {
final rotate = Matrix4.identity()..rotateZ(math.pi);
canvas.translate(0, this.width);
canvas.transform(rotate.storage);
}
}
}