CardCarouselTheme class
Theme configuration for CardCarousel widgets.
This class provides customization options for the visual appearance of CardCarousel components within the Arcane UI system. It integrates with ArcaneTheme to allow global theming of carousel edge effects, ensuring consistent design across the application.
Key features include control over gradient sharpness for edge fading, which enhances the user experience by visually indicating scrollable content boundaries.
Usage example:
ArcaneTheme(
cardCarousel: CardCarouselTheme(sharpness: 12),
child: CardCarousel(children: [/* cards */]),
)
See also:
doc/component/card_carousel.mdfor more detailed documentation- CardCarousel, the widget that applies this theme for horizontal scrolling with fade effects
- ArcaneTheme, the overarching theme system in Arcane
Constructors
- CardCarouselTheme({int sharpness = 9})
-
Constructs a CardCarouselTheme instance with optional sharpness customization.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
The intensity level for the edge gradient fade effect in CardCarousel widgets.
final
Methods
-
copyWith(
{int? sharpness}) → CardCarouselTheme - Returns a new CardCarouselTheme with specified fields overridden.
-
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