FlexColumnWidth class
Sizes the column by taking a part of the remaining space once all the other columns have been laid out.
For example, if two columns have a FlexColumnWidth, then half the space will go to one and half the space will go to the other.
This is a cheap way to size a column.
- Inheritance
-
- Object
- TableColumnWidth
- FlexColumnWidth
Constructors
- FlexColumnWidth([double value = 1.0])
-
Creates a column width based on a fraction of the remaining space once all
the other columns have been laid out.
const
Properties
Methods
-
flex(
Iterable< RenderBox> cells) → double -
The flex factor to apply to the cell if there is any room left
over when laying out the table. The remaining space is
distributed to any columns with flex in proportion to their flex
value (higher values get more space).
override
-
maxIntrinsicWidth(
Iterable< RenderBox> cells, double containerWidth) → double -
The ideal width that the column should have. This must be equal
to or greater than the minIntrinsicWidth. The column might be
bigger than this width, e.g. if the column is flexible or if the
table's width ends up being forced to be bigger than the sum of
all the maxIntrinsicWidth values.
override
-
minIntrinsicWidth(
Iterable< RenderBox> cells, double containerWidth) → double -
The smallest width that the column can have.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited