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