UnconstrainedBoxModifier constructor
const
UnconstrainedBoxModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- TextDirection? textDirection,
- AlignmentGeometry alignment = Alignment.center,
- Axis? constrainedAxis,
- Clip clipBehavior = Clip.none,
Creates a widget that imposes no constraints on its child, allowing it to render at its "natural" size. If the child overflows the parents constraints, a warning will be given in debug mode.
Implementation
const UnconstrainedBoxModifier({
super.key,
super.child,
super.modifierKey,
this.textDirection,
this.alignment = Alignment.center,
this.constrainedAxis,
this.clipBehavior = Clip.none,
});