createTweens method
Build the animations driven by controller. Called from initState
after controller has been created.
Implementation
@override
void createTweens() {
_rotation = TweenSequence<double>(<TweenSequenceItem<double>>[
TweenSequenceItem(tween: Tween(begin: 0.0, end: 0.261799), weight: 20),
TweenSequenceItem(
tween: Tween(begin: 0.261799, end: -0.174533),
weight: 20,
),
TweenSequenceItem(
tween: Tween(begin: -0.174533, end: 0.087266),
weight: 20,
),
TweenSequenceItem(
tween: Tween(begin: 0.087266, end: -0.087266),
weight: 20,
),
TweenSequenceItem(tween: Tween(begin: -0.087266, end: 0.0), weight: 20),
]).animate(CurvedAnimation(parent: controller, curve: widget.curve));
}