FSGridUtils class
Grid layout utilities with enhanced performance and type safety
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
-
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
Static Methods
-
calculateColumnWidth(
double containerWidth, int columns, double gap) → double - Calculate column width based on grid parameters
-
calculateOptimalColumns(
double containerWidth, double minColumnWidth, double gap) → int - Calculate optimal columns based on container width and min column width
-
calculateRowCount(
int itemCount, int columnsPerRow) → int - Calculate the number of rows needed for a grid efficiently
-
distributeItems<
T> (List< T> items, int columnsPerRow) → List<List< T> > - Distribute items into rows for grid layout with type safety