MyDottedCardViewer constructor

const MyDottedCardViewer({
  1. Key? key,
  2. required int itemCount,
  3. required Widget builder(
    1. BuildContext context,
    2. int index
    ),
  4. double selectedDotWidth = 14.0,
  5. double selectedDotHeight = 14.0,
  6. double unselectedDotWidth = 12.0,
  7. double unselectedDotHeight = 12.0,
  8. Color selectedDotColor = Colors.blue,
  9. Color unselectedDotColor = Colors.grey,
  10. double dotSpacing = 8.0,
  11. Curve dotAnimationCurve = Curves.easeInOut,
  12. Duration dotAnimationDuration = const Duration(milliseconds: 300),
  13. Duration pageTransitionDuration = const Duration(milliseconds: 300),
  14. Curve pageTransitionCurve = Curves.easeInOut,
  15. ScrollPhysics? scrollPhysics,
  16. bool autoScroll = false,
  17. Duration autoScrollInterval = const Duration(seconds: 3),
  18. Duration autoScrollAnimationDuration = const Duration(milliseconds: 300),
  19. BoxDecoration? bigIndicatorContainerDecoration,
  20. EdgeInsetsGeometry bigIndicatorContainerPadding = const EdgeInsets.all(8.0),
  21. Alignment bigIndicatorContainerAlignment = Alignment.center,
  22. double? bigIndicatorContainerWidth,
  23. double? bigIndicatorContainerHeight,
  24. BoxDecoration? miniIndicatorContainerDecoration,
  25. EdgeInsetsGeometry miniIndicatorContainerPadding = const EdgeInsets.all(10.0),
  26. Alignment miniIndicatorContainerAlignment = Alignment.center,
  27. EdgeInsetsGeometry miniIndicatorContainerMargin = EdgeInsets.zero,
  28. double? miniIndicatorContainerWidth,
  29. double? miniIndicatorContainerHeight,
  30. bool overlayDots = false,
  31. Alignment overlayDotsAlignment = Alignment.bottomCenter,
  32. EdgeInsets overlayDotsPadding = const EdgeInsets.only(bottom: 16.0),
  33. ValueChanged<int>? onPageChanged,
  34. 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,
});