Last active
June 5, 2020 10:57
-
-
Save SahanAmarsha/976009ba8f9c1e41892fb42dba624ca7 to your computer and use it in GitHub Desktop.
How to use heart animation using Animation Buidler Widget
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: | |
AnimatedBuilder(animation: _myAnimation, | |
builder: (ctx, ch) => Container( | |
width: _myAnimation.value.width, | |
height: _myAnimation.value.height, | |
decoration: BoxDecoration( | |
image: new DecorationImage( | |
image: new AssetImage( | |
'assets/images/heart.png', | |
) | |
) | |
), | |
) | |
) | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment