fit method
add FittedBox to parent widget
Implementation
Widget fit({BoxFit? fit, AlignmentGeometry? alignment}) {
return FittedBox(
child: this,
fit: fit ?? BoxFit.contain,
alignment: alignment ?? Alignment.center,
);
}
add FittedBox to parent widget
Widget fit({BoxFit? fit, AlignmentGeometry? alignment}) {
return FittedBox(
child: this,
fit: fit ?? BoxFit.contain,
alignment: alignment ?? Alignment.center,
);
}