CarouselConfig class

Configuration shared across all carousel 3D variants.

Constructors

CarouselConfig({int cardCount = 12, double cardWidth = 280.0, double gap = 8.0, double aspectRatio = 7 / 10, double perspective = 560.0, Duration animationDuration = const Duration(seconds: 32), BorderRadius borderRadius = const BorderRadius.all(Radius.circular(20)), Color backgroundColor = const Color(0xFFFFF3ED)})
const

Properties

animationDuration Duration
Duration of one full rotation.
final
aspectRatio double
Width-to-height aspect ratio of each card (e.g. 7/10).
final
backgroundColor Color
Background color behind the carousel.
final
borderRadius BorderRadius
Border radius applied to each card.
final
cardCount int
Number of visible cards in the ring.
final
cardWidth double
Width of each card in logical pixels.
final
gap double
Gap between cards in logical pixels.
final
hashCode int
The hash code for this object.
no setterinherited
perspective double
Perspective distance used for the Matrix4 projection.
final
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

Constants

alt → const CarouselConfig
Preset matching the compact alternate variant (small cards, close camera).
shader → const CarouselConfig
Preset matching the original shader variant (large cards, far camera).
standard → const CarouselConfig
Preset matching the standard no-shader variant (large cards).