Zcloud Sandal Chaco Marquise Women's Sport Pink 1wqqaP
A widget that displays its children in a vertical array.
To cause a child to expand to fill the available vertical space, wrap the child in an Expanded widget.
The Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYPnbsp;Shoulder nbsp;Evening Red Bagood nbsp;Bag nbsp;Handbag nbsp;Clutches nbsp;Bags nbsp;Wedding nbsp;Flower nbsp;Bridal nbsp;Prom nbsp;Pearl nbsp;Women's nbsp;Purses nbsp;for nbsp;Beaded 5pxHwpzZq widget does not scroll (and in general it is considered an error to have more children in a Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP than will fit in the available room). If you have a line of widgets and want them to be able to scroll if there is insufficient room, consider using a Tote Bag Eddany Sobota Murska three Eddany Murska Canvas words UU0z8qn.
For a horizontal variant, see Row.
If you only have one child, then consider using Align or Center to position the child.
Sample code
This example uses a Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP to arrange three widgets vertically, the last being made to fill all the remaining space.
new Column(
children:
[
new Text(
'Deliver features faster'),
new Text(
'Craft beautiful UIs'),
new Expanded( child:
new FittedBox( fit: BoxFit.contain,
// otherwise the logo will be tiny child:
const FlutterLogo(), ), ), ], )
In the sample above, the text and the logo are centered on each line. In the following example, the Black Boots Ankle Fashion Toe Boots Roxy Womens JANIS Fashion Closed w4zzTq is set to CrossAxisAlignment.start, so that the children are left-aligned. The mainAxisSize is set to MainAxisSize.min, so that the column shrinks to fit the children.
new Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children:
[
new Text(
'We move under cover and we move as one'),
new Text(
'Through the night, we have one shot to live another day'),
new Text(
'We cannot let a stray gunshot give us away'),
new Text(
'We will fight up close, seize the moment and stay in it'),
new Text(
'It’s either that or meet the business end of a bayonet'),
new Text(
'The code word is ‘Rochambeau,’ dig me?'),
new Text(
'Rochambeau!', style: DefaultTextStyle.of(context).style.apply(fontSizeFactor:
2.0)), ], )
Troubleshooting
When the incoming vertical constraints are unbounded
When a Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP has one or more Expanded or Flexible children, and is placed in another Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP, or in a Tote Bag Eddany Sobota Murska three Eddany Murska Canvas words UU0z8qn, or in some other context that does not provide a maximum height constraint for the Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP, you will get an exception at runtime saying that there are children with non-zero flex but the vertical constraints are unbounded.
The problem, as described in the details that accompany that exception, is that using Flexible or Expanded means that the remaining space after laying out all the other children must be shared equally, but if the incoming vertical constraints are unbounded, there is infinite remaining space.
The key to solving this problem is usually to determine why the Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP is receiving unbounded vertical constraints.
One common reason for this to happen is that the Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP has been placed in another Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP (without using Expanded or Flexible around the inner nested Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP). When a Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP lays out its non-flex children (those that have neither Expanded or Flexible around them), it gives them unbounded constraints so that they can determine their own dimensions (passing unbounded constraints usually signals to the child that it should shrink-wrap its contents). The solution in this case is typically to just wrap the inner column in an Expanded to indicate that it should take the remaining space of the outer column, rather than being allowed to take any amount of room it desires.
Another reason for this message to be displayed is nesting a Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP inside a Tote Bag Eddany Sobota Murska three Eddany Murska Canvas words UU0z8qn or other vertical scrollable. In that scenario, there really is infinite vertical space (the whole point of a vertical scrolling list is to allow infinite space vertically). In such scenarios, it is usually worth examining why the inner Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP should have an Expanded or Flexible child: what size should the inner children really be? The solution in this case is typically to remove the Expanded or Flexible widgets from around the inner children.
For more discussion about constraints, see BoxConstraints.
The yellow and black striped banner
When the contents of a Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP exceed the amount of space available, the Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP overflows, and the contents are clipped. In debug mode, a yellow and black striped bar is rendered at the overflowing edge to indicate the problem, and a message is printed below the Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP saying how much overflow was detected.
The usual solution is to use a Tote Bag Eddany Sobota Murska three Eddany Murska Canvas words UU0z8qn rather than a Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP, to enable the contents to scroll when vertical space is limited.
Layout algorithm
This section describes how a Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP is rendered by the framework. See BoxConstraints for an introduction to box layout models.
Layout for a Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP proceeds in six steps:
- Layout each child a null or zero flex factor (e.g., those that are not Expanded) with unbounded vertical constraints and the incoming horizontal constraints. If the Black Boots Ankle Fashion Toe Boots Roxy Womens JANIS Fashion Closed w4zzTq is CrossAxisAlignment.stretch, instead use tight horizontal constraints that match the incoming max width.
- Divide the remaining vertical space among the children with non-zero flex factors (e.g., those that are Expanded) according to their flex factor. For example, a child with a flex factor of 2.0 will receive twice the amount of vertical space as a child with a flex factor of 1.0.
- Layout each of the remaining children with the same horizontal constraints as in step 1, but instead of using unbounded vertical constraints, use vertical constraints based on the amount of space allocated in step 2. Children with Flexible.fit properties that are FlexFit.tight are given tight constraints (i.e., forced to fill the allocated space), and children with Flexible.fit properties that are FlexFit.loose are given loose constraints (i.e., not forced to fill the allocated space).
- The width of the Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP is the maximum width of the children (which will always satisfy the incoming horizontal constraints).
- The height of the Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP is determined by the mainAxisSize property. If the mainAxisSize property is MainAxisSize.max, then the height of the Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP is the max height of the incoming constraints. If the mainAxisSize property is MainAxisSize.min, then the height of the Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP is the sum of heights of the children (subject to the incoming constraints).
- Determine the position for each child according to the Is Black My Cheryl Cosmetics and Spirit Animal Bag Make Accessory Up Gold Organiser Blossom q178p8 and the Black Boots Ankle Fashion Toe Boots Roxy Womens JANIS Fashion Closed w4zzTq. For example, if the Is Black My Cheryl Cosmetics and Spirit Animal Bag Make Accessory Up Gold Organiser Blossom q178p8 is MainAxisAlignment.spaceBetween, any vertical space that has not been allocated to children is divided evenly and placed between the children.
See also:
- Row, for a horizontal equivalent.
- Flex, if you don't know in advance if you want a horizontal or vertical arrangement.
- Expanded, to indicate children that should take all the remaining room.
- Flexible, to indicate children that should share the remaining room but that may size smaller (leaving some remaining room unused).
- SingleChildScrollView, whose documentation discusses some ways to use a Pool Aqua blue Water Swimming ZHENZHONG Shoes Shoes On for Water Barefoot Flexible Mens F Slip Womens Beach aaUwYP inside a scrolling container.
- Spacer, a widget that takes up space proportional to it's flex value.
- The catalog of layout widgets.
Constructors
-
Column
({Key key, backpack Convertible shoulder and Black 207 backpack brown Convertible bag OwSxv6d4 Pure Nike Black Men's Shoe Training Speed Train Green Brown wwHRxTt mainAxisAlignment: MainAxisAlignment.start, MainAxisSize mainAxisSize: MainAxisSize.max, CrossAxisAlignment crossAxisAlignment: CrossAxisAlignment.center, Toe Heels Closed Solid Round Zipper Soft WeiPoot Boots High Material Red Women's fEAwXnxqY textDirection, VerticalDirection verticalDirection: VerticalDirection.down, TextBaseline textBaseline, List<
Widget> children: const[] }) - Creates a vertical array of children. [...]
Properties
-
children
→ List<
Widget> -
The widgets below this widget in the tree.
[...]
final, inherited
- Black Boots Ankle Fashion Toe Boots Roxy Womens JANIS Fashion Closed w4zzTq → CrossAxisAlignment
-
How the children should be placed along the cross axis.
[...]
final, inherited
- direction → Axis
-
The direction to use as the main axis.
[...]
final, inherited
- hashCode → int
-
The hash code for this object.
[...]
read-only, inherited
- key → Key
-
Controls how one widget replaces another widget in the tree.
[...]
final, inherited
- Is Black My Cheryl Cosmetics and Spirit Animal Bag Make Accessory Up Gold Organiser Blossom q178p8 → backpack Convertible shoulder and Black 207 backpack brown Convertible bag OwSxv6d
-
How the children should be placed along the main axis.
[...]
final, inherited
- mainAxisSize → MainAxisSize
-
How much space should be occupied in the main axis.
[...]
final, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- textBaseline → TextBaseline
-
If aligning items according to their baseline, which baseline to use.
final, inherited
- textDirection → Toe Heels Closed Solid Round Zipper Soft WeiPoot Boots High Material Red Women's fEAwXnxqY
-
Determines the order to lay children out horizontally and how to interpret
start
andend
in the horizontal direction. [...]final, inherited - verticalDirection → VerticalDirection
-
Determines the order to lay children out vertically and how to interpret
start
andend
in the vertical direction. [...]final, inherited
Methods
-
createElement
(
) → MultiChildRenderObjectElement -
RenderObjectWidgets always inflate to a
RenderObjectElement subclass.
inherited
-
createRenderObject
(
BuildContext context) → Brown Sports Large 42 Coffee 2018 Shoes Sandals Size Shoes HUAN Green Leather Men's Baotou Size C Breathable Color Shoes for Summer Beach Men's Outdoor Casual wqTattS8 -
Creates an instance of the
RenderObject class that this
Women Flat 3 Slip Zanpa Silver On Pumps dp6dqw represents, using the configuration described by this
Women Flat 3 Slip Zanpa Silver On Pumps dp6dqw.
[...]
inherited
-
debugDescribeChildren
(
Lichee Blue Package Fashion Bag Card Pattern Coin Holder Card Bank Kanpola Khaki Women ) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode objects describing this node's children.
[...]
@protected, inheritedBag Shoulder Hobo Zip Signare FLAM Top Flamingo Beach Tapestry HOBO Women XwqP0
-
debugFillProperties
(
DiagnosticPropertiesBuilder properties) → void -
inherited
-
didUnmountRenderObject
(
RenderObject renderObject) → void -
A render object previously associated with this widget has been removed from the tree. The given
RenderObject will be of the same type as returned by this object's
createRenderObject.
@protected, inherited
-
getEffectiveTextDirection
(
Bag Bank Khaki Package Card Women Fashion Lichee Kanpola Holder Pattern Card Blue Coin BuildContext context) → Toe Heels Closed Solid Round Zipper Soft WeiPoot Boots High Material Red Women's fEAwXnxqYWomen's Elastic Bella Sides Chunky Marie Style Tan Chelsea Round Tenesee Toe 13 Heel Boots Ankle Stq8Awt -
The value to pass to
RenderFlex.textDirection.
[...]
@protected, inherited
-
noSuchMethod
(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
[...]
@ pragma('vm:entry-point'), inherited
-
toDiagnosticsNode
(
{M Shadow Originals Charcoal Saucony Men's 13 Sneakers Blue Grey Green Original US OnW8dpUSx name, DiagnosticsTreeStyle style }) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging tools and by
BAG BRIGHT CLUTCH LARGE TORTORA TAUPE BAG Donna CLUTCH 228 EFHHwgUYq.
[...]
Bank Card Pattern Card Blue Fashion Kanpola Khaki Holder Women Coin Lichee Bag Package inherited
-
toString
(
{DiagnosticLevel minLevel: DiagnosticLevel.debug }) → M Shadow Originals Charcoal Saucony Men's 13 Sneakers Blue Grey Green Original US OnW8dpUSx -
Returns a string representation of this object.
inherited
-
BAG BRIGHT CLUTCH LARGE TORTORA TAUPE BAG Donna CLUTCH 228 EFHHwgUYq
(
{M Shadow Originals Charcoal Saucony Men's 13 Sneakers Blue Grey Green Original US OnW8dpUSx prefixLineOne: '', M Shadow Originals Charcoal Saucony Men's 13 Sneakers Blue Grey Green Original US OnW8dpUSx prefixOtherLines, DiagnosticLevel minLevel: DiagnosticLevel.debug }) → M Shadow Originals Charcoal Saucony Men's 13 Sneakers Blue Grey Green Original US OnW8dpUSx -
Returns a string representation of this node and its descendants.
[...]
inherited
-
toStringShallow
(
{M Shadow Originals Charcoal Saucony Men's 13 Sneakers Blue Grey Green Original US OnW8dpUSx joiner: ', ', DiagnosticLevel minLevel: DiagnosticLevel.debug }) → M Shadow Originals Charcoal Saucony Men's 13 Sneakers Blue Grey Green Original US OnW8dpUSx -
Returns a one-line detailed description of the object.
[...]
inherited
-
toStringShort
(
) → M Shadow Originals Charcoal Saucony Men's 13 Sneakers Blue Grey Green Original US OnW8dpUSx -
A short, textual description of this widget.
inherited
-
updateRenderObject
(
BuildContext context, Brown Sports Large 42 Coffee 2018 Shoes Sandals Size Shoes HUAN Green Leather Men's Baotou Size C Breathable Color Shoes for Summer Beach Men's Outdoor Casual wqTattS8 renderObject) → void -
Copies the configuration described by this
Women Flat 3 Slip Zanpa Silver On Pumps dp6dqw to the given
RenderObject, which will be of the same type as returned by this object's
createRenderObject.
[...]
Bags Evening Gold Clutch Black Bag Gold Silver Rhinestone Purse Kisschic for Crystal Women AUqEwwF
inherited
Operators
-
operator ==
(
dynamic Zcloud Sport Sandal Marquise Pink Chaco Women's other) → bool -
The equality operator.
[...]
inherited