widget_carousel

Creator: coderz1093

Last updated:

0 purchases

widget_carousel Image
widget_carousel Images
Add to Cart

Description:

widget carousel

flutter_images_slider #
A carousel slider widget, support infinite scroll and custom indicator, with autoplay feature.
Installation #
Add carousel_slider: ^0.0.1 in your pubspec.yaml dependencies. And import it:
import 'package:flutter_images_slider/flutter_images_slider.dart';
copied to clipboard
How to use #
Create a WidgetCarousel widget, and pass the required params:
WidgetCarousel(
items: map<Widget>(imgList, (index, i) {
return Container(
decoration: BoxDecoration(
image: DecorationImage(
image: NetworkImage(i),
fit: BoxFit.cover
)
),
);
}),
autoPlay: true,
viewportFraction: 1.0,
aspectRatio: 2.0,
distortion: false,
align: IndicatorAlign.bottom,
indicatorWidth: 5,
updateCallback: (index) {
setState(() {
_current = index;
});
},
)
copied to clipboard

Credits #
flutter_carousel_slider

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.