UnconstrainedBoxModifier constructor

const UnconstrainedBoxModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. TextDirection? textDirection,
  5. AlignmentGeometry alignment = Alignment.center,
  6. Axis? constrainedAxis,
  7. 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,
});