FloatSlot class
How one child of a FloatFlow takes part.
- Inheritance
Constructors
- FloatSlot({Key? key, FloatSide float = FloatSide.none, FloatClear clear = FloatClear.none, bool bfc = false, double? width, double? widthFraction, FloatWidth? widthKeyword, FloatWidth? minWidthKeyword, double? height, double? heightFraction, double? minWidth, double? maxWidth, double? minHeight, double? maxHeight, double? minWidthFraction, double? maxWidthFraction, double? minHeightFraction, double? maxHeightFraction, double? maxWidthOther, double? maxWidthOtherFraction, EdgeInsets margin = EdgeInsets.zero, bool autoLeft = false, bool autoRight = false, bool contentBox = false, EdgeInsets frame = EdgeInsets.zero, bool onLine = false, bool lifted = false, required Widget child})
-
const
Properties
- autoLeft → bool
-
Whether the child's left and right margins are
auto: what is left of the room once the child has its width goes to them (CSS 2.1 10.3.3).final - autoRight → bool
-
Whether the child's left and right margins are
auto: what is left of the room once the child has its width goes to them (CSS 2.1 10.3.3).final - bfc → bool
-
Whether the child is a formatting context of its own --
overflowother thanvisible,display: flow-root, a table. Such a box does not run UNDER a float: it narrows into the room beside it, or moves down past it where there is none (CSS 2.1 9.5).final - child → Widget
-
The widget below this widget in the tree.
finalinherited
- clear → FloatClear
-
The floats this child starts below.
final
- contentBox → bool
-
Whether a size written as a share of the box is the child's CONTENT
box, its frame (or the padding round a hosted child) outside it
(
box-sizing: content-box). A size in pixels is always the border box: the stack is told the box the widget comes out as.final - debugTypicalAncestorWidgetClass → Type
-
Describes the RenderObjectWidget that is typically used to set up the
ParentData that applyParentData will write to.
no setteroverride
- debugTypicalAncestorWidgetDescription → String
-
Describes the RenderObjectWidget that is typically used to set up the
ParentData that applyParentData will write to.
no setterinherited
- float → FloatSide
-
Which side this child is pushed to, out of the stack.
final
- frame → EdgeInsets
-
The padding and border inside the child, which it paints itself: the
child is asked in content-box terms and its answer is framed.
final
-
frame where the page wrote the padding as a SHARE of the containing
block's width, on every side, the top and the bottom included (CSS 2.1
8.4): the flow's content width, which the pass knows where it lays the
child out and the child does not -- a float is laid out at a width of
its own, which says nothing of the block's. Resolved, it is added to
frame; while the flow's own width is being worked out it is a share
of nothing and comes to nothing (css-sizing-3 5.2.1), as a marginShare
does. The child is asked in content-box terms and laid out at the
whole box, the share and all, as with frame -- but it cannot pad what
it holds by a share it is never told, so this is for a child with
nothing inside to place: an empty float, such as a ratio spacer,
float: left; width: 1px; padding-bottom: 56.25%held in by a clear after it, which stands its flow at 16:9 of the flow's width.final - hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The border-box height the child asks for.
final
- heightFraction → double?
-
height as a share of the box's content height, where that is known.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lifted → bool
-
Whether the child paints over the floats wherever it stands in the
flow: a
relativebox, or one that starts a stacking context, paints with the positioned boxes (CSS 2.1 Appendix E step 8). Any other child that is no float paints UNDER them -- see RenderFloatFlow.paint.final - margin → EdgeInsets
-
Space round the child, which the stack collapses down the page and
lays out across it. A margin written into the child instead would be
added where CSS collapses it.
final
-
margin where the page wrote it as a share of the containing block's
width, on every side (CSS 2.1 8.3).
final
- maxHeight → double?
-
The floor and the cap on each axis, in pixels.
final
- maxHeightFraction → double?
-
The floors and the caps as shares of the box's content box. Beside a
length on the same side they are the two summed:
max-width: calc(100% - 75px)ismaxWidth: -75, maxWidthFraction: 1.final - maxWidth → double?
-
The floor and the cap on each axis, in pixels.
final
- maxWidthFraction → double?
-
The floors and the caps as shares of the box's content box. Beside a
length on the same side they are the two summed:
max-width: calc(100% - 75px)ismaxWidth: -75, maxWidthFraction: 1.final - maxWidthOther → double?
-
A SECOND CAP ACROSS, a length and a share summed as maxWidth and
maxWidthFraction are, where the child is held to the LARGER of the
two:
max-width: max(50%, 200px)ismaxWidthFraction: 0.5, maxWidthOther: 200-- 200 in a box under 400, half of it past (css-values-4 10.9). Against a box of no width yet the whole cap is none, as a share alone is (css-sizing-3 5.2.1). Nothing without one of the two.final - maxWidthOtherFraction → double?
-
A SECOND CAP ACROSS, a length and a share summed as maxWidth and
maxWidthFraction are, where the child is held to the LARGER of the
two:
max-width: max(50%, 200px)ismaxWidthFraction: 0.5, maxWidthOther: 200-- 200 in a box under 400, half of it past (css-values-4 10.9). Against a box of no width yet the whole cap is none, as a share alone is (css-sizing-3 5.2.1). Nothing without one of the two.final - minHeight → double?
-
The floor and the cap on each axis, in pixels.
final
- minHeightFraction → double?
-
The floors and the caps as shares of the box's content box. Beside a
length on the same side they are the two summed:
max-width: calc(100% - 75px)ismaxWidth: -75, maxWidthFraction: 1.final - minWidth → double?
-
The floor and the cap on each axis, in pixels.
final
- minWidthFraction → double?
-
The floors and the caps as shares of the box's content box. Beside a
length on the same side they are the two summed:
max-width: calc(100% - 75px)ismaxWidth: -75, maxWidthFraction: 1.final - minWidthKeyword → FloatWidth?
-
min-widthas a keyword, FloatWidth.minContent, FloatWidth.maxContent or FloatWidth.fitContent: a floor at the content's own width -- whatever width says -- which the pass measures, no widget between the two may (see widthKeyword); the last is that clamped into the room less the margins -- for a context of its own beside a float, the room beside it (bfc). A<fieldset>'s ismin-contentby default: an audio shop's footer form is one in a floated flow. It floors whatever minWidth does.final - onLine → bool
-
A float met in the middle of a line: its top is that line's, and the
words before it stay beside it (CSS 2.1 9.5.1 rule 6). The child
follows the FloatText whose line it stands on, which holds its place
with U+FFFC.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
The border-box width the child asks for, which the stack has to hear
rather than measure: a float's width is what the room beside it is
measured from.
final
- widthFraction → double?
-
width as a share of the box's content width.
final
- widthKeyword → FloatWidth?
-
width as a keyword. Takes the place of width and widthFraction.
final
Methods
-
applyParentData(
RenderObject renderObject) → void -
Write the data from this widget into the given render object's parent data.
override
-
createElement(
) → ParentDataElement< FloatFlowParentData> -
Inflates this configuration to a concrete instance.
inherited
-
debugCanApplyOutOfTurn(
) → bool -
Whether the ParentDataElement.applyWidgetOutOfTurn method is allowed
with this widget.
inherited
-
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
-
debugIsValidRenderObject(
RenderObject renderObject) → bool -
Checks if this widget can apply its parent data to the provided
renderObject.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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited