Use MovieTween to combine multiple animations
mainA MovieTween allows you to combine multiple tweens into a single timeline with control over timing and value extrapolation. You can define multiple properties (like 'width' or 'height') within the same MovieTween instance.
To use it, create a MovieTween and call .tween() for each property. You can use the cascade operator (..) for a builder-style syntax. To create staggered animations where one property follows another, use .thenTween().
final tween = MovieTween()
..tween(
'width',
Tween(begin: 0.0, end: 100.0),
duration: const Duration(milliseconds: 700),
)
..thenTween(
'width',
Tween(begin: 100.0, end: 200.0),
duration: const Duration(milliseconds: 500),
);