stacked_carousel_slider 0.0.1
stacked_carousel_slider: ^0.0.1 copied to clipboard
A Flutter package for carousel slider that stacks and animates items with customizable spacing, scale, and alignment.
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
[simple]
Horizontal Scroll
[simple]
Vertical Auto Rotate
[simple]
Vertical Scroll
[simple]