BetterSwiper constructor
const
BetterSwiper({
- Key? key,
- required PageController controller,
- required List<
Widget> children, - double? width,
- required double height,
- bool? autoplay = true,
- Duration autoplayDuration = const Duration(seconds: 3),
- Duration duration = const Duration(milliseconds: 300),
- Curve curve = Curves.easeInOut,
- int initialIndex = 0,
- Color? indicatorColor = Colors.white,
- double? dotSize,
- bool? showIndicator = true,
- Axis scrollDirection = Axis.horizontal,
- bool touchable = true,
- bool lazyRender = false,
- bool loop = true,
- BetterSwiperIndicatorType indicatorType = BetterSwiperIndicatorType.dot,
- ValueChanged<
int> ? onChanged, - Widget? indicatorWidget,
Implementation
const BetterSwiper({
super.key,
required this.controller,
required this.children,
this.width,
required this.height,
this.autoplay = true,
this.autoplayDuration = const Duration(seconds: 3),
this.duration = const Duration(milliseconds: 300),
this.curve = Curves.easeInOut,
this.initialIndex = 0,
this.indicatorColor = Colors.white,
this.dotSize,
this.showIndicator = true,
this.scrollDirection = Axis.horizontal,
this.touchable = true,
this.lazyRender = false,
this.loop = true,
this.indicatorType = BetterSwiperIndicatorType.dot,
this.onChanged,
this.indicatorWidget,
});