MyMiniOnTheRightImageViewer constructor

const MyMiniOnTheRightImageViewer({
  1. Key? key,
  2. required List images,
  3. BoxFit imageFit = BoxFit.cover,
  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. ValueChanged<int>? onPageChanged,
  18. ValueChanged<int>? onImagePressed,
})

Implementation

const MyMiniOnTheRightImageViewer({
  super.key,
  required this.images,
  this.imageFit = BoxFit.cover,
  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.onPageChanged,
  this.onImagePressed,
});