Skip to content

Instantly share code, notes, and snippets.

@hnvn
Created June 26, 2018 04:42
Show Gist options
  • Save hnvn/0e6b85bd9d2661c1dbde869608a233b2 to your computer and use it in GitHub Desktop.
Save hnvn/0e6b85bd9d2661c1dbde869608a233b2 to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
return Column(
mainAxisSize: MainAxisSize.min,
children: [
Transform(
transform: Matrix4.rotationX(pi / 4),
alignment: Alignment.bottomCenter,
child: ClipRect(
child: Align(
alignment: Alignment.topCenter,
heightFactor: 0.5,
child: child,
)),
),
...
],
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment