fittedBox method
Widget
fittedBox({
- Key? key,
- BoxFit fit = BoxFit.contain,
- AlignmentGeometry alignment = Alignment.centerLeft,
- 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,
);