delayed_tween_animation_builder 0.5.1 icon indicating copy to clipboard operation
delayed_tween_animation_builder: ^0.5.1 copied to clipboard

Mimics the TweenAnimationBuilder but with an optional delay.

DelayedTweenAnimationBuilder behaves like Flutter's TweenAnimationBuilderbut adds the option to delay the animation by a given duration.

Features #

  • Delays are one of the most useful features of simple_animations's PlayAnimation Widget - use them without depending on the entire package!
  • Delay the initial animation of a TweenAnimationBuilder
  • Optionally delay every subsequent animation of a change

Usage #

// This is how you would have a widget appear after 1 second
Widget build(BuildContext context) {
  return DelayedTweenAnimationBuilder<double>(
    delayOnlyOnce: true,
    duration: const Duration(seconds: 1),
    tween: Tween(begin: 0, end: 1),
    builder: (context, value, child) => Opacity(
      opacity: value,
      child: child,
    ),
    child: const FlutterLogo(),
  );
}

Additional information #

This package is very simple and will therefore most probably not receive many updates. We will do our best to always maintain compatibility with the most current Flutter version however! New features will only be added if they fit the scope of this widget so it won't get bloated.

If you find a bug or want to add things like tests, feel free to open a pull request!

1
likes
120
pub points
32%
popularity

Publisher

verified publisher icontimcreated.it

Mimics the TweenAnimationBuilder but with an optional delay.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on delayed_tween_animation_builder