SlickView constructor

const SlickView({
  1. required SlickController slickController,
  2. required IndexedWidgetBuilder itemBuilder,
  3. required int itemCount,
  4. Widget? nextWidget,
  5. Widget? previousWidget,
  6. bool showPrevious = true,
  7. bool showNext = true,
  8. bool infiniteScroll = false,
  9. bool fixedWidth = false,
  10. double? itemWidth,
  11. Duration duration = const Duration(milliseconds: 300),
  12. Curve curve = Curves.linear,
  13. int initialPage = 0,
  14. double itemSpace = 16,
  15. double actionWidgetWith = 45,
  16. double actionSpace = 16,
  17. double viewportFraction = 1,
  18. bool keepPage = true,
  19. 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});