MyMiniOnTheRightCardViewer constructor

const MyMiniOnTheRightCardViewer({
  1. Key? key,
  2. required int itemCount,
  3. required Widget builder(
    1. BuildContext context,
    2. int index
    ),
  4. double viewportFraction = 0.8,
  5. double scaleFactor = 0.8,
  6. bool showDotsIndicator = true,
  7. double dotSize = 8.0,
  8. double dotSpacing = 4.0,
  9. Color dotColor = Colors.grey,
  10. Color activeDotColor = Colors.blue,
  11. Duration dotAnimationDuration = const Duration(milliseconds: 300),
  12. Curve dotAnimationCurve = Curves.easeInOut,
  13. bool autoScroll = false,
  14. Duration autoScrollInterval = const Duration(seconds: 3),
  15. Duration autoScrollAnimationDuration = const Duration(milliseconds: 300),
  16. Curve autoScrollCurve = Curves.easeInOut,
  17. ScrollPhysics? scrollPhysics,
  18. bool toggleDotsOnTap = false,
  19. ValueChanged<int>? onPageChanged,
  20. 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,
});