-
-
Save Rahiche/bf6c2316726c8a17cf92ad66ff72982d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void paintChildren(FlowPaintingContext context) { | |
double dy = 0.0; | |
for (int i = 0; i < context.childCount; ++i) { | |
dy = context.getChildSize(i).height * i; | |
context.paintChild( | |
i, | |
transform: Matrix4.translationValues( | |
0, | |
dy * 0.1, | |
0, | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment