LayoutUtils class
Utility functions for layout calculations and responsive design.
Constructors
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
-
calculateCrossAxisCount(
{required double width, double? minItemWidth, int? defaultCount}) → int - Gets the effective cross-axis count for a given width and constraints.
-
responsiveMargin(
double width) → EdgeInsets - Calculates responsive margin based on screen width.
-
responsivePadding(
double width) → EdgeInsets - Calculates responsive padding based on screen width.
-
responsiveSpacing(
double width) → double - Calculates item spacing based on screen width.