CardCarousel class

A horizontally scrollable widget container with edge fading.

CardCarousel displays a sequence of widgets in a compact horizontal layout with smooth scrolling and edge gradient overlays to indicate additional content.

Inheritance

Constructors

CardCarousel({Key? key, List<Component> children = const [], int? sharpness, String? featherColor, double gap = 16, String? padding, String? height})
const

Properties

children List<Component>
The collection of widgets to render within the carousel.
final
featherColor String?
Optional color for the edge fade overlay gradient.
final
gap double
Gap between carousel items.
final
hashCode int
The hash code for this object.
no setterinherited
height String?
Height constraint for the carousel.
final
key Key?
Controls how one component replaces another component in the tree.
finalinherited
padding String?
Padding around the carousel content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharpness int?
Optional override for the edge gradient fade intensity (1-12).
final

Methods

build(BuildContext context) Component
Describes the part of the user interface represented by this component.
override
createElement() Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

styles List<StyleRule>
final