FastCarousel constructor
const
FastCarousel({})
Creates a new instance of FastCarousel.
The itemBuilder
and itemCount
parameters are required.
The labels
, height
, scale
, duration
, and fraction
parameters are optional.
FastCarousel(
itemCount: 5,
height: 200,
scale: 0.8,
fraction: 0.7,
duration: Duration(seconds: 5),
itemBuilder: (BuildContext context, int index) {
return FastImg(path: 'https://picsum.photos/200/300?random=$index');
},
)
Implementation
const FastCarousel({
super.key,
required this.itemBuilder,
required this.itemCount,
this.labels,
this.height,
this.scale = 0.9,
this.duration = const Duration(seconds: 10),
this.fraction = 0.8,
});