FitSize constructor

const FitSize({
  1. Key? key,
  2. double? height,
  3. double? width,
  4. BoxFit fit = BoxFit.contain,
  5. AlignmentGeometry alignment = Alignment.center,
  6. Clip clipBehavior = Clip.none,
  7. required Widget child,
})

FitSize will fit your widget in the provided dimensions. The widget is wrapped in a FittedBox and a SizedBox

Implementation

const FitSize({
  Key? key,
  this.height,
  this.width,
  this.fit = BoxFit.contain,
  this.alignment = Alignment.center,
  this.clipBehavior = Clip.none,
  required this.child,
}) : super(key: key);