DimensionSizedBox constructor
const
DimensionSizedBox({
- Key? key,
- AlignmentGeometry alignment = Alignment.center,
- Dimension? width,
- Dimension? height,
- Widget? child,
Creates a widget that sizes its child to a fraction of the total available space.
If non-null, the widthFactor
and heightFactor
arguments must be
non-negative.
Implementation
const DimensionSizedBox({
Key? key,
this.alignment = Alignment.center,
this.width,
this.height,
Widget? child,
}) : super(key: key, child: child);