scale method
比例缩放
Implementation
Widget scale({
Key? key,
double? all,
double? x,
double? y,
Offset? origin,
AlignmentGeometry alignment = Alignment.center,
bool transformHitTests = true,
}) =>
Transform(
key: key,
transform: Matrix4.diagonal3Values(x ?? all ?? 0, y ?? all ?? 0, 1.0),
alignment: alignment,
origin: origin,
transformHitTests: transformHitTests,
child: this,
);