CardCarousel constructor
Creates a CardCarousel widget.
The children
parameter defaults to an empty list, but should typically
contain at least enough widgets to allow horizontal scrolling.
The sharpness
parameter is optional and if not provided, the value
from the current theme's CardCarouselTheme will be used.
Example:
CardCarousel(
children: [
BasicCard(
title: Text("Card 1"),
content: Text("First card content"),
),
BasicCard(
title: Text("Card 2"),
content: Text("Second card content"),
),
BasicCard(
title: Text("Card 3"),
content: Text("Third card content"),
),
],
)
Implementation
const CardCarousel({super.key, this.children = const [], this.sharpness});