Created
June 10, 2020 13:14
-
-
Save SahanAmarsha/1835bf702587ba30fcfb7818df0004c9 to your computer and use it in GitHub Desktop.
Using the Hinge 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: | |
AnimatedBuilder( | |
animation: _slideAnimation, | |
builder: (ctx, ch) => Container( | |
width: 200, | |
height: 100, | |
padding: EdgeInsets.all(0), | |
margin: EdgeInsets.only( | |
left: 75, | |
top: _slideAnimation.value, | |
), | |
child: RotationTransition( | |
turns: _rotateAnimation, | |
child: Center( | |
child: Text('Animation', style: TextStyle( | |
fontSize: 40, | |
fontWeight: FontWeight.bold, | |
color: Color.fromRGBO(0, 0, 128, _opacityAnimation.value) | |
),), | |
), | |
), | |
), | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment