Wrap class

A widget that displays its children in multiple horizontal or vertical runs.

Inheritance
Mixed in types

Constructors

Wrap({Axis direction = Axis.horizontal, WrapAlignment alignment = WrapAlignment.start, double spacing = 0.0, WrapAlignment runAlignment = WrapAlignment.start, double runSpacing = 0.0, WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start, VerticalDirection verticalDirection = VerticalDirection.down, List<Widget> children = const <Widget>[]})
Creates a wrap layout.

Properties

alignment WrapAlignment
How the children within a run should be placed in the main axis.
final
box PdfRect?
The bounding box of this widget, calculated at layout time
getter/setter pairinherited
canSpan bool
no setteroverride
children List<Widget>
finalinherited
crossAxisAlignment WrapCrossAlignment
How the children within a run should be aligned relative to each other in the cross axis.
final
direction Axis
The direction to use as the main axis.
final
hashCode int
The hash code for this object.
no setterinherited
hasMoreWidgets bool
no setteroverride
runAlignment WrapAlignment
How the runs themselves should be placed in the cross axis.
final
runSpacing double
How much space to place between the runs themselves in the cross axis.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spacing double
How much space to place between children in a run in the main axis.
final
textDirection bool
no setter
verticalDirection VerticalDirection
Determines the order to lay children out vertically and how to interpret start and end in the vertical direction.
final

Methods

applyContext(covariant WidgetContext context) → void
Called before relayout to restore the saved state and restart the layout in the same conditions
inherited
cloneContext() WidgetContext
Called after layout to save the state
inherited
debugPaint(Context context) → void
inherited
layout(Context context, BoxConstraints constraints, {bool parentUsesSize = false}) → void
First widget pass to calculate the children layout and bounding box
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Context context) → void
Draw itself and its children, according to the calculated box.offset
override
restoreContext(covariant WrapContext context) → void
Apply the context for next page layout. Called before layout to prepare for next page
override
saveContext() WidgetContext
Get unmodified mutable context object
override
toString() String
A string representation of this object.
inherited

Operators

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