Created
June 9, 2020 17:03
-
-
Save SahanAmarsha/28aca71083b31d033043a96774015a84 to your computer and use it in GitHub Desktop.
Implementing the 3d Flip Animation
This file contains hidden or 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
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