paintChildren method

  1. @override
void paintChildren(
  1. FlowPaintingContext context
)
override

paintChildren is responsible to draw the children elements

Implementation

@override
void paintChildren(FlowPaintingContext context) {
  for (int i = context.childCount - 1; i >= 0; i--) {
    context.paintChild(
        i,
        opacity: opacityAnimation.value,
        /// transform the child element
        transform: Matrix4Transform().rotate(
          rotationAnimation.value,
          origin: center,
        ).scale(
          scaleAnimation.value,
          origin:center,
        ).direction(
          /// angle of the transformation
           angle,
           /// distance from center
           distanceAnimation.value
       ).matrix4
    );
  }
}