Expanded class

A Flexible child that is forced to fill its allocated space (FlexFit.tight).

Inheritance

Constructors

Expanded({Key? key, required Widget child, int flex = 1})
Creates an Expanded widget with the given flex factor.
const

Properties

child Widget
The child widget whose render object receives the parent data.
finalinherited
fit FlexFit
How the child is constrained: FlexFit.loose allows the child to be smaller than the allocated space; FlexFit.tight forces it to fill it.
finalinherited
flex int
The flex factor controlling how much space this child takes relative to other flexible children.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyParentData(RenderObject renderObject) → void
Applies parent data to the given renderObject.
inherited
createElement() ParentDataElement
Creates the Element for this widget.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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