scaleXY method
Scale animation that specifies equal magnitudes on the XY axis.
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
.
XY軸で等しい大きさを指定するスケールアニメーションを行います。
begin
に開始時のスケールを設定します。
end
に終了時のスケールを設定します。
alignment
を設定すると大きさの変更の中心を変更できます。
duration
にアニメーションの時間を設定します。
curve
にアニメーションのカーブを設定します。
Implementation
Future<void> scaleXY({
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, begin),
end: Offset(end, end),
alignment: alignment,
);