downToUp static method
animate the dialog from bottom to up
Implementation
static Transform downToUp({
/// the child
required Widget child,
/// the animation as double
required Animation<double> animation,
}) {
return Transform(
// define the matrix 4 translation from our curve
transform:
Matrix4.translationValues(0.0, getCurvedValue(animation) * -200, 0.0),
child: Opacity(
opacity: animation.value,
child: child,
),
);
}