MaxWidthBox constructor

const MaxWidthBox({
  1. Key? key,
  2. required double? maxWidth,
  3. required Widget child,
  4. AlignmentGeometry alignment = Alignment.topCenter,
  5. EdgeInsets? padding,
  6. Color? backgroundColor,
})

Implementation

const MaxWidthBox(
    {super.key,
    required this.maxWidth,
    required this.child,
    this.alignment = Alignment.topCenter,
    this.padding,
    this.backgroundColor});