Skip to content

Instantly share code, notes, and snippets.

@SahanAmarsha
Created June 10, 2020 17:28
Show Gist options
  • Save SahanAmarsha/4bc8540bdbdbf2a2d55953e5fb0a83b8 to your computer and use it in GitHub Desktop.
Save SahanAmarsha/4bc8540bdbdbf2a2d55953e5fb0a83b8 to your computer and use it in GitHub Desktop.
How to use the Bounce Animation
body:
AnimatedBuilder(animation: _slideAnimation,
builder: (ctx, ch) => Container(
width: 100,
height: 100,
margin: EdgeInsets.only(
top: _slideAnimation.value,
left: 125
),
decoration: BoxDecoration(
image: new DecorationImage(
image: new AssetImage(
'assets/images/bounce-ball.png',
)
)
),
)
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment