Skip to content

Instantly share code, notes, and snippets.

@Rahiche
Created February 10, 2019 21:24
Show Gist options
  • Save Rahiche/bf6c2316726c8a17cf92ad66ff72982d to your computer and use it in GitHub Desktop.
Save Rahiche/bf6c2316726c8a17cf92ad66ff72982d to your computer and use it in GitHub Desktop.
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