AdvancedCarousel constructor
const
AdvancedCarousel({
- Key? key,
- List<
Widget> ? items, - Future<
List< itemLoader()?,Widget> > - double height = 200.0,
- bool autoPlay = true,
- Duration autoPlayInterval = const Duration(seconds: 3),
- bool infiniteScroll = true,
- Curve transitionCurve = Curves.easeInOut,
- Duration transitionDuration = const Duration(milliseconds: 500),
- bool showIndicator = true,
- Color indicatorColor = Colors.white,
- double indicatorSize = 8.0,
- Alignment indicatorAlignment = Alignment.bottomCenter,
- BoxShape indicatorShape = BoxShape.circle,
- bool pauseOnHover = false,
- ValueChanged<
int> ? onPageChanged, - IndexedWidgetBuilder? itemBuilder,
- int itemCount = 0,
- TransitionEffect transitionEffect = TransitionEffect.slide,
- bool enableLazyLoading = true,
- bool accessibilityEnabled = true,
- dynamic onItemChanged()?,
Implementation
const AdvancedCarousel({
Key? key,
this.items,
this.itemLoader,
this.height = 200.0,
this.autoPlay = true,
this.autoPlayInterval = const Duration(seconds: 3),
this.infiniteScroll = true,
this.transitionCurve = Curves.easeInOut,
this.transitionDuration = const Duration(milliseconds: 500),
this.showIndicator = true,
this.indicatorColor = Colors.white,
this.indicatorSize = 8.0,
this.indicatorAlignment = Alignment.bottomCenter,
this.indicatorShape = BoxShape.circle,
this.pauseOnHover = false,
this.onPageChanged,
this.itemBuilder,
this.itemCount = 0,
this.transitionEffect = TransitionEffect.slide,
this.enableLazyLoading = true,
this.accessibilityEnabled = true,
this.onItemChanged,
}) : assert(items != null || itemLoader != null || itemBuilder != null),
super(key: key);