ScrollPageView constructor

const ScrollPageView({
  1. Key? key,
  2. required ScrollPageController controller,
  3. bool isTimer = true,
  4. Axis scrollDirection = Axis.horizontal,
  5. bool reverse = false,
  6. ScrollPhysics? physics,
  7. bool pageSnapping = true,
  8. ValueChanged<int>? onPageChanged,
  9. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  10. bool allowImplicitScrolling = false,
  11. String? restorationId,
  12. Clip? clipBehavior = Clip.hardEdge,
  13. List<Widget> children = const <Widget>[],
  14. Duration delay = const Duration(seconds: 2),
  15. Duration duration = const Duration(milliseconds: 800),
  16. Color indicatorColor = Colors.white,
  17. Color checkedIndicatorColor = Colors.deepOrange,
  18. double indicatorRadius = 8,
  19. Alignment indicatorAlign = Alignment.bottomCenter,
  20. EdgeInsets indicatorPadding = const EdgeInsets.all(16),
  21. 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);