ConcentricPageView constructor

const ConcentricPageView({
  1. Key? key,
  2. required dynamic itemBuilder(
    1. int index
    ),
  3. required List<Color> colors,
  4. Key? pageViewKey,
  5. dynamic onChange(
    1. int page
    )?,
  6. Function? onFinish,
  7. int? itemCount,
  8. PageController? pageController,
  9. bool pageSnapping = true,
  10. bool reverse = false,
  11. ValueNotifier? notifier,
  12. double scaleFactor = 0.3,
  13. double opacityFactor = 0.0,
  14. double radius = 40.0,
  15. double verticalPosition = 0.75,
  16. Axis direction = Axis.horizontal,
  17. ScrollPhysics? physics = const ClampingScrollPhysics(),
  18. Duration duration = const Duration(milliseconds: 1500),
  19. Curve curve = Curves.easeInOutSine,
  20. WidgetBuilder? nextButtonBuilder,
})

Implementation

const ConcentricPageView({
  Key? key,
  required this.itemBuilder,
  required this.colors,
  this.pageViewKey,
  this.onChange,
  this.onFinish,
  this.itemCount,
  this.pageController,
  this.pageSnapping = true,
  this.reverse = false,
  this.notifier,
  this.scaleFactor = 0.3,
  this.opacityFactor = 0.0,
  this.radius = 40.0,
  this.verticalPosition = 0.75,
  this.direction = Axis.horizontal,
  this.physics = const ClampingScrollPhysics(),
  this.duration = const Duration(milliseconds: 1500),
  this.curve = Curves.easeInOutSine, // const Cubic(0.7, 0.5, 0.5, 0.1),
  this.nextButtonBuilder,
})  : assert(colors.length >= 2),
      super(key: key);