FlSwiper constructor

const FlSwiper({
  1. Key? key,
  2. required IndexedWidgetBuilder itemBuilder,
  3. required int itemCount,
  4. bool autoPlay = true,
  5. FlSwiperLayout layout = FlSwiperLayout.stack,
  6. Duration duration = kDefaultAutoPlayDelay,
  7. Duration transitionDuration = kDefaultAutoPlayTransitionDuration,
  8. List<FlSwiperPlugin> pagination = const <FlSwiperPlugin>[],
  9. ValueChanged<int>? onChanged,
  10. int? index,
  11. FlSwiperOnTap? onTap,
  12. bool loop = true,
  13. Curve curve = Curves.ease,
  14. Axis scrollDirection = Axis.horizontal,
  15. FlSwiperController? controller,
  16. required double itemHeight,
  17. 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,
});