SnappingPageScroll constructor
SnappingPageScroll({
- Key? key,
- required List<
Widget> children, - ValueChanged<
int> ? onPageChanged, - Axis scrollDirection = Axis.horizontal,
- bool showPageIndicator = false,
- Widget? currentPageIndicator,
- Widget? otherPageIndicator,
- 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);