FadingImagesSlider constructor

FadingImagesSlider({
  1. Color? activeIconColor = Colors.black,
  2. Color? passiveIconColor = Colors.grey,
  3. IconData? icon = Icons.circle,
  4. Duration animationDuration = const Duration(milliseconds: 800),
  5. bool autoFade = true,
  6. double? iconSize = 8,
  7. required List<Widget> images,
  8. required List<Widget> texts,
  9. Duration fadeInterval = const Duration(milliseconds: 5000),
  10. Alignment textAlignment = Alignment.bottomCenter,
})

Implementation

FadingImagesSlider({
  ///You can change anything about dots.
  this.activeIconColor = Colors.black,

  ///You can change anything about dots.
  this.passiveIconColor = Colors.grey,

  ///You can change anything about dots.
  this.icon = Icons.circle,
  this.animationDuration = const Duration(milliseconds: 800),
  this.autoFade = true,
  this.iconSize = 8,

  ///images and texts is required properties and list length must be same.
  required this.images,

  ///images and texts is required properties and list length must be same.
  required this.texts,
  this.fadeInterval = const Duration(milliseconds: 5000),
  this.textAlignment = Alignment.bottomCenter,
});