scale method

Widget scale({
  1. Key? key,
  2. double? all,
  3. double? x,
  4. double? y,
  5. Offset? origin,
  6. AlignmentGeometry alignment = Alignment.center,
  7. bool transformHitTests = true,
})

比例缩放

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,
    );