Spill class

overflow: visible: the box is the size the room says, and its content is laid out at the size the CONTENT says, painted past the edge where that is larger (CSS 2.1 11.1.1).

Flutter's box protocol has no way to say this -- a child is never given more room than its parent has -- so a Column under a page of content taller than the window lays out short, and RenderFlex paints a yellow-and-black striped band over a tenth of itself to say so. That band is not a layout error here: the browser overflows the same box and simply scrolls. The stripes are drawn from inside an assert with no switch to turn them off, so the only way to be rid of them is for the flex not to be the box that overflowed.

So this one takes the overflow instead. It hands the child no ceiling on axis (both axes where that is null), reports the size the room would have given it, and paints the child from its own top-left wherever that leaves it -- its top-RIGHT under an rtl Directionality, where what does not fit hangs out of the left. Every intrinsic and the baseline are the child's, unchanged: what the box overflows by is nobody else's business.

Inheritance

Constructors

Spill({Key? key, Axis? axis, bool fill = false, bool floor = false, bool room = false, Widget? child})
const

Properties

axis → Axis?
The axis the content may exceed the box on, or null for both.
final
child → Widget?
The widget below this widget in the tree.
finalinherited
fill → bool
Whether the child still FILLS the room on that axis where it is smaller than it -- what MainAxisSize.max says, and what a flex with a main size of its own has to keep saying: justify-content has free space to hand out only where the line is as long as its box. The room goes in as the child's MINIMUM, so it is both at once: the line fills 1440 with 900 of cards in it, and runs to 1600 with 1600 of them.
final
floor → bool
Whether the child keeps the FLOOR it was offered without being made to fill the room above it.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
room → bool
Whether the height this box is offered is a CONTAINING BLOCK'S, for the boxes in the flow inside that take a share of it (FractionalHeight.ofRoom).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → SingleChildRenderObjectElement
RenderObjectWidgets always inflate to a RenderObjectElement subclass.
inherited
createRenderObject(BuildContext context) → RenderObject
Creates an instance of the RenderObject class that this RenderObjectWidget represents, using the configuration described by this RenderObjectWidget.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didUnmountRenderObject(covariant RenderObject renderObject) → void
This method is called when a RenderObject that was previously associated with this widget is removed from the render tree. The provided RenderObject will be of the same type as the one created by this widget's createRenderObject method.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited
updateRenderObject(BuildContext context, covariant RenderSpill renderObject) → void
Copies the configuration described by this RenderObjectWidget to the given RenderObject, which will be of the same type as returned by this object's createRenderObject.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited