UnconstrainedBox constructor

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