FlSwiper constructor
const
FlSwiper({
- Key? key,
- required IndexedWidgetBuilder itemBuilder,
- required int itemCount,
- bool autoPlay = true,
- FlSwiperLayout layout = FlSwiperLayout.stack,
- Duration duration = kDefaultAutoPlayDelay,
- Duration transitionDuration = kDefaultAutoPlayTransitionDuration,
- List<
FlSwiperPlugin> pagination = const <FlSwiperPlugin>[], - ValueChanged<
int> ? onChanged, - int? index,
- FlSwiperOnTap? onTap,
- bool loop = true,
- Curve curve = Curves.ease,
- Axis scrollDirection = Axis.horizontal,
- FlSwiperController? controller,
- required double itemHeight,
- required double itemWidth,
Implementation
const FlSwiper({
super.key,
required this.itemBuilder,
required this.itemCount,
this.autoPlay = true,
this.layout = FlSwiperLayout.stack,
this.duration = kDefaultAutoPlayDelay,
this.transitionDuration = kDefaultAutoPlayTransitionDuration,
this.pagination = const <FlSwiperPlugin>[],
this.onChanged,
this.index,
this.onTap,
this.loop = true,
this.curve = Curves.ease,
this.scrollDirection = Axis.horizontal,
this.controller,
required this.itemHeight,
required this.itemWidth,
});