A Flutter package that provides a carousel slider widget for cycling through custom child content. It supports infinite scrolling, autoplay, and manual page control.
Overview
Carousel Slider is a Flutter widget package for building horizontal or vertical carousels in mobile, web, and desktop Flutter apps. You add it as a dependency and compose a carousel by supplying items and configuration options.
The widget supports infinite scroll so users can loop through slides, autoplay with configurable timing and animation curves, and custom child widgets for each slide. You can also build items on demand so off-screen slides are not constructed until needed, which reduces memory use for long lists.
CarouselOptions control height, aspect ratio, viewport fraction, initial page, scroll direction, and center-page enlargement. A dedicated controller can jump or animate to specific pages from code, which helps for buttons or external navigation.
Supported targets named in the package metadata include Android, iOS, web, Linux, macOS, and Windows. Example demos cover text and image carousels, vertical layout, custom indicators, and cases with infinite scroll disabled.
Key features
- Infinite scroll looping
- Autoplay with timing options
- Custom child widgets per slide
- On-demand item builder
- Manual page controller
- Vertical or horizontal axis
- Configurable viewport and enlargement
- CarouselOptions for layout control
Use cases
- Image galleries in Flutter apps
- Onboarding or promo slide strips
- Product or content rotators
- Fullscreen image viewers
- Text announcement carousels