SnappingPageScroll constructor

SnappingPageScroll({
  1. Key? key,
  2. required List<Widget> children,
  3. ValueChanged<int>? onPageChanged,
  4. Axis scrollDirection = Axis.horizontal,
  5. bool showPageIndicator = false,
  6. Widget? currentPageIndicator,
  7. Widget? otherPageIndicator,
  8. PageController? controller,
})

Implementation

SnappingPageScroll({
  super.key,
  required List<Widget> children,
  this.onPageChanged,
  this.scrollDirection = Axis.horizontal,
  this.showPageIndicator = false,
  this.currentPageIndicator,
  this.otherPageIndicator,
  this.controller,
}) : _childrenDelegate = SliverChildListDelegate(children);