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