Package selection guidance compiled from public package information, community data, and project usage.
A Flutter widget for creating smooth, customizable carousel sliders with support for infinite scrolling and custom child widgets. Ideal for displaying images, cards, or any content in a visually engaging horizontal or vertical scrollable layout. The package is lightweight and integrates seamlessly into apps across multiple platforms, including mobile, web, and desktop. It allows developers to easily configure indicators, autoplay, and swipe gestures for enhanced user experience.
Use cases
Displaying image galleries
Showcasing product carousels
Creating onboarding screens
Presenting featured content
Building interactive sliders
Highlighting promotional banners
Key features
Infinite scroll support
Customizable child widgets
Auto-play functionality
Indicator customization
Cross-platform compatibility
Smooth animations
Suitable for
Mobile app developers
Web application creators
Desktop app integrators
UI/UX designers
E-commerce applications
Onboarding screen implementations
Considerations
May require optimization for large datasets
Limited built-in styling options
Performance impact with heavy child widgets
Not ideal for complex nested layouts
Requires manual handling of tap events
Depends on external dependencies for advanced features
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
carousel_slider_plus
A carousel slider widget.
This package is fork of carousel_slider which is not actively maintained.
If you pass the height parameter, the aspectRatio parameter will be ignored.
Build item widgets on demand
This method will save memory by building items once it becomes necessary. This way they won't be built if they're not currently meant to be visible on screen.
It can be used to build different child item widgets related to content or by item index.
CarouselSlider.builder(
itemCount: 15,
itemBuilder: (BuildContext context, int itemIndex, int pageViewIndex) {
returnContainer(
child: Text(itemIndex.toString()),
);
}
)
Carousel controller
In order to manually control the PageView's position, you can create your own CarouselSliderController, and pass it to CarouselSlider. Then you can use the CarouselSliderController instance to manipulate the position.
/// Animate to the next page
controller.nextPage({Duration duration, Curve curve});
/// Animate to the previous page
controller.previousPage({Duration duration, Curve curve});
/// Jump to the given page.
controller.jumpToPage(int page);
/// Animate to the given page.
controller.animateToPage(int page, {Duration duration, Curve curve});
/// Start/Stop Auto-play (only work if `autoplay` is set to true in `CarouselOptions`)
controller.startAutoPlay();
Screenshots
Basic text carousel slider:
Basic image carousel slider:
A more complicated image carousel slider:
Full Screen image carousel slider:
Image carousel slider with custom indicator:
Manually control the page position:
Vertical carousel slider:
Simple on-demand image carousel slider, with image auto prefetch:
No infinite scroll:
All screenshots above can be found at the example project.