ScrollPageView constructor
const
ScrollPageView({
- Key? key,
- required ScrollPageController controller,
- bool isTimer = true,
- Axis scrollDirection = Axis.horizontal,
- bool reverse = false,
- ScrollPhysics? physics,
- bool pageSnapping = true,
- ValueChanged<
int> ? onPageChanged, - DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool allowImplicitScrolling = false,
- String? restorationId,
- Clip? clipBehavior = Clip.hardEdge,
- List<
Widget> children = const <Widget>[], - Duration delay = const Duration(seconds: 2),
- Duration duration = const Duration(milliseconds: 800),
- Color indicatorColor = Colors.white,
- Color checkedIndicatorColor = Colors.deepOrange,
- double indicatorRadius = 8,
- Alignment indicatorAlign = Alignment.bottomCenter,
- EdgeInsets indicatorPadding = const EdgeInsets.all(16),
- IndicatorWidgetBuilder? indicatorWidgetBuilder,
Implementation
const ScrollPageView({
Key? key,
required this.controller,
this.isTimer = true,
this.scrollDirection = Axis.horizontal,
this.reverse = false,
this.physics,
this.pageSnapping = true,
this.onPageChanged,
this.dragStartBehavior = DragStartBehavior.start,
this.allowImplicitScrolling = false,
this.restorationId,
this.clipBehavior = Clip.hardEdge,
this.children = const <Widget>[],
this.delay = const Duration(seconds: 2),
this.duration = const Duration(milliseconds: 800),
this.indicatorColor = Colors.white,
this.checkedIndicatorColor = Colors.deepOrange,
this.indicatorRadius = 8,
this.indicatorAlign = Alignment.bottomCenter,
this.indicatorPadding = const EdgeInsets.all(16),
this.indicatorWidgetBuilder,
}) : super(key: key);