scaleX method

Future<void> scaleX({
  1. required Duration duration,
  2. Curve curve = Curves.linear,
  3. double begin = 0.0,
  4. double end = 0.0,
  5. Alignment? alignment,
})

X-axis scale animation.

Set the X-axis scale at the start to begin.

Set the X-axis scale at the end to end.

The center of the size change can be changed by setting alignment.

Set the animation duration in duration.

Set the animation curve to curve.

X軸スケールアニメーションを行います。

beginに開始時のX軸スケールを設定します。

endに終了時のX軸スケールを設定します。

alignmentを設定すると大きさの変更の中心を変更できます。

durationにアニメーションの時間を設定します。

curveにアニメーションのカーブを設定します。

Implementation

Future<void> scaleX({
  required Duration duration,
  Curve curve = Curves.linear,
  double begin = 0.0,
  double end = 0.0,
  Alignment? alignment,
}) =>
    scale(
      duration: duration,
      curve: curve,
      begin: Offset(begin, 0.0),
      end: Offset(end, 0.0),
      alignment: alignment,
    );