S360FCarouselSlider<T> constructor
const
S360FCarouselSlider<T> ({
- required List<
T> items, - required Widget itemBuilder(
- BuildContext context,
- T item,
- int index
- required double height,
- double viewportFraction = 0.25,
- double itemSpacing = 8.0,
- bool showIndicator = true,
- Color? indicatorActiveColor,
- Color? indicatorInactiveColor,
- Duration animationDuration = const Duration(milliseconds: 300),
- ValueChanged<
int> ? onPageChanged, - Key? key,
Implementation
const S360FCarouselSlider({
required this.items,
required this.itemBuilder,
required this.height,
this.viewportFraction = 0.25,
this.itemSpacing = 8.0,
this.showIndicator = true,
this.indicatorActiveColor,
this.indicatorInactiveColor,
this.animationDuration = const Duration(milliseconds: 300),
this.onPageChanged,
super.key,
});