buildAnimation method
Implementation
Widget buildAnimation() {
return AnimatedBuilder(
animation: slideController,
builder: (context, child) => Transform.translate(
offset: slide.value,
child: child,
),
child: widget.child,
);
}