ConcentricPageView constructor
const
ConcentricPageView({
- Key? key,
- required dynamic itemBuilder(
- int index
- required List<
Color> colors, - Key? pageViewKey,
- dynamic onChange(
- int page
- Function? onFinish,
- int? itemCount,
- PageController? pageController,
- bool pageSnapping = true,
- bool reverse = false,
- ValueNotifier? notifier,
- double scaleFactor = 0.3,
- double opacityFactor = 0.0,
- double radius = 40.0,
- double verticalPosition = 0.75,
- Axis direction = Axis.horizontal,
- ScrollPhysics? physics = const ClampingScrollPhysics(),
- Duration duration = const Duration(milliseconds: 1500),
- Curve curve = Curves.easeInOutSine,
- 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);