applyPositionFixedPaintTransform method

void applyPositionFixedPaintTransform(
  1. RenderBoxModel child,
  2. Matrix4 transform
)

Implementation

void applyPositionFixedPaintTransform(
    RenderBoxModel child, Matrix4 transform) {
  // Keep `applyPaintTransform` in sync with the scroll-compensation applied in
  // RenderBoxModel.paintBoxModel.
  final Offset o = child.getFixedScrollCompensation();
  if (o.dx != 0.0 || o.dy != 0.0) transform.translate(o.dx, o.dy);
}