SlickView constructor
const
SlickView({
- required SlickController slickController,
- required IndexedWidgetBuilder itemBuilder,
- required int itemCount,
- Widget? nextWidget,
- Widget? previousWidget,
- bool showPrevious = true,
- bool showNext = true,
- bool infiniteScroll = false,
- bool fixedWidth = false,
- double? itemWidth,
- Duration duration = const Duration(milliseconds: 300),
- Curve curve = Curves.linear,
- int initialPage = 0,
- double itemSpace = 16,
- double actionWidgetWith = 45,
- double actionSpace = 16,
- double viewportFraction = 1,
- bool keepPage = true,
- Key? key,
initialize the slickview
Implementation
const SlickView(
{required this.slickController,
required this.itemBuilder,
required this.itemCount,
this.nextWidget,
this.previousWidget,
this.showPrevious = true,
this.showNext = true,
this.infiniteScroll = false,
this.fixedWidth = false,
this.itemWidth,
this.duration = const Duration(milliseconds: 300),
this.curve = Curves.linear,
this.initialPage = 0,
this.itemSpace = 16,
this.actionWidgetWith = 45,
this.actionSpace = 16,
this.viewportFraction = 1,
this.keepPage = true,
super.key});