Skip to content

Instantly share code, notes, and snippets.

@Rahiche
Created December 13, 2018 19:49
Show Gist options
  • Save Rahiche/cd87a4d3840ae0c66822dbb094659601 to your computer and use it in GitHub Desktop.
Save Rahiche/cd87a4d3840ae0c66822dbb094659601 to your computer and use it in GitHub Desktop.
final offsetAnimation = TweenSequence([
TweenSequenceItem(
tween: Tween<Offset>(
begin: Offset(0.0, 1.0), end: Offset(0.0, 0.0)),
weight: 1),
TweenSequenceItem(
tween: ConstantTween(Offset(0.0, 0.0)), weight: 3),
TweenSequenceItem(
tween: Tween<Offset>(
begin: Offset(0.0, 0.0), end: Offset(0.0, -1.0)),
weight: 1)
]).animate(animation);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment