createTweens method
Build the animations driven by controller. Called from initState
after controller has been created.
Implementation
@override
void createTweens() {
_scale = Tween<double>(begin: 1, end: widget.from).animate(
CurvedAnimation(parent: controller, curve: widget.curve),
);
_opacity = Tween<double>(begin: 1, end: 0).animate(
CurvedAnimation(parent: controller, curve: const Interval(0, 0.85)),
);
}