fittedBox method

Widget fittedBox({
  1. Key? key,
  2. BoxFit fit = BoxFit.contain,
  3. AlignmentGeometry alignment = Alignment.centerLeft,
  4. Clip clipBehavior = Clip.none,
})

缩放布局

Implementation

Widget fittedBox({
  Key? key,
  BoxFit fit = BoxFit.contain,
  AlignmentGeometry alignment = Alignment.centerLeft,
  Clip clipBehavior = Clip.none,
}) =>
    FittedBox(
      key: key,
      fit: fit,
      alignment: alignment,
      clipBehavior: clipBehavior,
      child: this,
    );