Skip to content

Instantly share code, notes, and snippets.

@SahanAmarsha
Created June 9, 2020 17:03
Show Gist options
  • Save SahanAmarsha/28aca71083b31d033043a96774015a84 to your computer and use it in GitHub Desktop.
Save SahanAmarsha/28aca71083b31d033043a96774015a84 to your computer and use it in GitHub Desktop.
Implementing the 3d Flip Animation
body: Center(
child: Transform(
alignment: FractionalOffset.center,
transform: Matrix4.identity()
..setEntry(3, 2, 0.002)
..rotateX(pi*(_myAnimation.value)),
child: Container(
color: Colors.blueAccent,
width: 200,
height: 200,
child: Icon(
Icons.accessibility_new,
color: Colors.white,
size: 50,
),
),
)
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment