scale method

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

Scale animation.

Set the starting scale in begin.

Set the end scale 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.

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

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

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

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

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

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

Implementation

Future<void> scale({
  required Duration duration,
  Curve curve = Curves.linear,
  Offset begin = const Offset(0, 0),
  Offset end = const Offset(0, 0),
  Alignment? alignment,
}) {
  return runAnimateQuery(
    _ScaleEffectQuery(
      duration: duration,
      curve: curve,
      begin: begin,
      end: end,
      alignment: alignment,
    ),
  );
}