ComfyColumnWidth class
A custom TableColumnWidth for comfortable table sizing in StaticTable.
Computes intrinsic widths with added padding for better readability.
Supports optional flex for proportional sizing. Efficient for static layouts,
avoiding over-constrained columns in Arcane UI tables within BasicCard or Glass.
- Inheritance
-
- Object
- TableColumnWidth
- ComfyColumnWidth
Constructors
- ComfyColumnWidth({double? flex, double padding = 8})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
flex(
Iterable< RenderBox> cells) → double? -
Returns the flex value if set, for proportional column distribution.
override
-
maxIntrinsicWidth(
Iterable< RenderBox> cells, double containerWidth) → double -
Calculates the maximum intrinsic width similarly, for flexible layouts.
override
-
minIntrinsicWidth(
Iterable< RenderBox> cells, double containerWidth) → double -
Calculates the minimum intrinsic width by taking the max of cell mins plus padding.
override
-
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