A Flutter package for carousel slider that stacks and animates items with customizable spacing, scale, and alignment.
Features
- Infinite scroll
- Supports Vertical & Horizontal scrolling
- Auto play
Supported platforms
- Android
- IOS
Installation
Add stacked_carousel_slider: ^1.0.0 to your pubspec.yaml dependencies. And import it:
import 'package:stacked_carousel_slider/stacked_cards.dart';
Usage
Simply create a StackedCarouselSlider widget, and pass the required params:
StackedCarouselSlider(
items: [
Colors.blue,
Colors.red,
Colors.yellow,
Colors.green,
Colors.purple,
].map((color) => Container(color: color)).toList(),
height: 300,
width: 200,
autoRotate: true,
stackLevels: 3,
spaceIntervalsFactor: 2,
),
Screenshots
Horizontal Auto Rotate
Horizontal Scroll
Vertical Auto Rotate
Vertical Scroll