DelayedTweenAnimationBuilder behaves like Flutter's TweenAnimationBuilderbut adds
the option to delay the animation by a given duration.
- Delays are one of the most useful features of
simple_animations'sPlayAnimationWidget - use them without depending on the entire package! - Delay the initial animation of a
TweenAnimationBuilder - Optionally delay every subsequent animation of a change
// 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(),
);
}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!