SubZeroCarouselConfig class

Configuration for the SubZeroCarousel component.

Constructors

SubZeroCarouselConfig({bool showIndicators = true, bool showNavigationArrows = true, bool enableAutoPlay = false, Duration autoPlayInterval = const Duration(seconds: 4), Duration animationDuration = const Duration(milliseconds: 350), Curve animationCurve = Curves.easeInOut, bool enableInfiniteScroll = true, double viewportFraction = 1.0, double? height, double aspectRatio = 16 / 9, EdgeInsets padding = EdgeInsets.zero, double itemGap = 16.0})
const

Properties

animationCurve → Curve
Animation curve for transitions.
final
animationDuration → Duration
Duration of the slide animation.
final
aspectRatio → double
Aspect ratio of the carousel (width / height). Used when height is null.
final
autoPlayInterval → Duration
Duration between auto-play transitions.
final
enableAutoPlay → bool
Whether to enable auto-play rotation.
final
enableInfiniteScroll → bool
Whether to loop back to the start after reaching the end.
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
Height of the carousel. If null, uses aspect ratio.
final
itemGap → double
Gap between items when viewportFraction < 1.0.
final
padding → EdgeInsets
Padding around the entire carousel.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showIndicators → bool
Whether to show dot indicators at the bottom.
final
showNavigationArrows → bool
Whether to show navigation arrow buttons.
final
viewportFraction → double
Viewport fraction for each item (1.0 = full width, 0.8 = 80% with peek).
final

Methods

copyWith({bool? showIndicators, bool? showNavigationArrows, bool? enableAutoPlay, Duration? autoPlayInterval, Duration? animationDuration, Curve? animationCurve, bool? enableInfiniteScroll, double? viewportFraction, double? height, double? aspectRatio, EdgeInsets? padding, double? itemGap}) → SubZeroCarouselConfig
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