upToDown static method
animate the dialog from up to down
Implementation
static Transform upToDown({
/// 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,
),
);
}