FadingImagesSlider constructor
FadingImagesSlider({
- Color? activeIconColor = Colors.black,
- Color? passiveIconColor = Colors.grey,
- IconData? icon = Icons.circle,
- Duration animationDuration = const Duration(milliseconds: 800),
- bool autoFade = true,
- double? iconSize = 8,
- required List<
Widget> images, - required List<
Widget> texts, - Duration fadeInterval = const Duration(milliseconds: 5000),
- 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,
});