leftToRight static method
animate the dialog from left to right
Implementation
static Transform leftToRight({
/// 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(getCurvedValue(animation) * 200, 0.0, 0.0),
child: Opacity(
opacity: animation.value,
child: child,
),
);
}