CarpetStyles class
A utility class providing predefined and composite CarpetStyle configurations for responsive layouts in the Arcane UI system.
This class offers static methods to generate styles tailored for different screen sizes and layout needs, such as strips, tapes, lists, grids, and mosaics. It integrates with Carpet and CarpetStyle to enable dynamic, adaptive tiling of content tiles based on device width and content aspect ratios. Use CarpetStyles.composite for breakpoint-based style switching, ensuring seamless transitions across devices in conjunction with ArcaneTheme.
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
-
composite(
BuildContext context, Map< double, CarpetStyle Function(BuildContext)> styles) → CarpetStyle - Creates a composite CarpetStyle by selecting from a map of breakpoint-based styles.
-
grid(
BuildContext context, {double size = 250, int wCells = 1, int hCells = 1, int quiltHeightMultiplier = 1}) → CarpetStyle - Generates a grid-style CarpetStyle for uniform, multi-cell layouts.
-
list(
BuildContext context, {double scale = 1, int quiltHeightMultiplier = 1}) → CarpetStyle - Generates a list-style CarpetStyle for vertical, card-like layouts.
-
mosaic(
BuildContext context, {double size = 250}) → CarpetStyle - Generates a mosaic-style CarpetStyle for irregular, aspect-preserving layouts.
-
strip(
BuildContext context, {int quiltHeightMultiplier = 1}) → CarpetStyle - Generates a strip-style CarpetStyle for linear, horizontal layouts.
-
tape(
BuildContext context, {double scale = 1, int quiltHeightMultiplier = 1}) → CarpetStyle - Generates a tape-style CarpetStyle for granular, horizontal scrolling layouts.