MyDottedCardViewer constructor
const
MyDottedCardViewer({
- Key? key,
- required int itemCount,
- required Widget builder(
- BuildContext context,
- int index
- double selectedDotWidth = 14.0,
- double selectedDotHeight = 14.0,
- double unselectedDotWidth = 12.0,
- double unselectedDotHeight = 12.0,
- Color selectedDotColor = Colors.blue,
- Color unselectedDotColor = Colors.grey,
- double dotSpacing = 8.0,
- Curve dotAnimationCurve = Curves.easeInOut,
- Duration dotAnimationDuration = const Duration(milliseconds: 300),
- Duration pageTransitionDuration = const Duration(milliseconds: 300),
- Curve pageTransitionCurve = Curves.easeInOut,
- ScrollPhysics? scrollPhysics,
- bool autoScroll = false,
- Duration autoScrollInterval = const Duration(seconds: 3),
- Duration autoScrollAnimationDuration = const Duration(milliseconds: 300),
- BoxDecoration? bigIndicatorContainerDecoration,
- EdgeInsetsGeometry bigIndicatorContainerPadding = const EdgeInsets.all(8.0),
- Alignment bigIndicatorContainerAlignment = Alignment.center,
- double? bigIndicatorContainerWidth,
- double? bigIndicatorContainerHeight,
- BoxDecoration? miniIndicatorContainerDecoration,
- EdgeInsetsGeometry miniIndicatorContainerPadding = const EdgeInsets.all(10.0),
- Alignment miniIndicatorContainerAlignment = Alignment.center,
- EdgeInsetsGeometry miniIndicatorContainerMargin = EdgeInsets.zero,
- double? miniIndicatorContainerWidth,
- double? miniIndicatorContainerHeight,
- bool overlayDots = false,
- Alignment overlayDotsAlignment = Alignment.bottomCenter,
- EdgeInsets overlayDotsPadding = const EdgeInsets.only(bottom: 16.0),
- ValueChanged<
int> ? onPageChanged, - ValueChanged<
int> ? onCardPressed,
Implementation
const MyDottedCardViewer({
super.key,
required this.itemCount,
required this.builder,
this.selectedDotWidth = 14.0,
this.selectedDotHeight = 14.0,
this.unselectedDotWidth = 12.0,
this.unselectedDotHeight = 12.0,
this.selectedDotColor = Colors.blue,
this.unselectedDotColor = Colors.grey,
this.dotSpacing = 8.0,
this.dotAnimationCurve = Curves.easeInOut,
this.dotAnimationDuration = const Duration(milliseconds: 300),
this.pageTransitionDuration = const Duration(milliseconds: 300),
this.pageTransitionCurve = Curves.easeInOut,
this.scrollPhysics,
this.autoScroll = false,
this.autoScrollInterval = const Duration(seconds: 3),
this.autoScrollAnimationDuration = const Duration(milliseconds: 300),
this.bigIndicatorContainerDecoration,
this.bigIndicatorContainerPadding = const EdgeInsets.all(8.0),
this.bigIndicatorContainerAlignment = Alignment.center,
this.bigIndicatorContainerWidth,
this.bigIndicatorContainerHeight,
this.miniIndicatorContainerDecoration,
this.miniIndicatorContainerPadding = const EdgeInsets.all(10.0),
this.miniIndicatorContainerAlignment = Alignment.center,
this.miniIndicatorContainerMargin = EdgeInsets.zero,
this.miniIndicatorContainerWidth,
this.miniIndicatorContainerHeight,
this.overlayDots = false,
this.overlayDotsAlignment = Alignment.bottomCenter,
this.overlayDotsPadding = const EdgeInsets.only(bottom: 16.0),
this.onPageChanged,
this.onCardPressed,
});