MyMiniOnTheRightCardViewer constructor
const
MyMiniOnTheRightCardViewer({
- Key? key,
- required int itemCount,
- required Widget builder(
- BuildContext context,
- int index
- double viewportFraction = 0.8,
- double scaleFactor = 0.8,
- bool showDotsIndicator = true,
- double dotSize = 8.0,
- double dotSpacing = 4.0,
- Color dotColor = Colors.grey,
- Color activeDotColor = Colors.blue,
- Duration dotAnimationDuration = const Duration(milliseconds: 300),
- Curve dotAnimationCurve = Curves.easeInOut,
- bool autoScroll = false,
- Duration autoScrollInterval = const Duration(seconds: 3),
- Duration autoScrollAnimationDuration = const Duration(milliseconds: 300),
- Curve autoScrollCurve = Curves.easeInOut,
- ScrollPhysics? scrollPhysics,
- bool toggleDotsOnTap = false,
- ValueChanged<
int> ? onPageChanged, - ValueChanged<
int> ? onCardPressed,
Implementation
const MyMiniOnTheRightCardViewer({
super.key,
required this.itemCount,
required this.builder,
this.viewportFraction = 0.8,
this.scaleFactor = 0.8,
this.showDotsIndicator = true,
this.dotSize = 8.0,
this.dotSpacing = 4.0,
this.dotColor = Colors.grey,
this.activeDotColor = Colors.blue,
this.dotAnimationDuration = const Duration(milliseconds: 300),
this.dotAnimationCurve = Curves.easeInOut,
this.autoScroll = false,
this.autoScrollInterval = const Duration(seconds: 3),
this.autoScrollAnimationDuration = const Duration(milliseconds: 300),
this.autoScrollCurve = Curves.easeInOut,
this.scrollPhysics,
this.toggleDotsOnTap = false,
this.onPageChanged,
this.onCardPressed,
});