coverflow_carousel 1.2.1 copy "coverflow_carousel: ^1.2.1" to clipboard
coverflow_carousel: ^1.2.1 copied to clipboard

A highly customizable 3D coverflow-style carousel for Flutter with smooth animations, perspective effects, and controller support.

Coverflow Carousel #

A beautiful, highly customizable 3D coverflow-style carousel for Flutter.

Create immersive experiences with smooth perspective effects, overlapping cards, dynamic scaling, and effortless programmatic navigation.

Perfect for music apps, movie browsers, ecommerce showcases, galleries, portfolios, and modern mobile interfaces.


Features #

  • Smooth 3D coverflow-style design
  • Responsive across different screen sizes
  • Swipe-based navigation
  • Infinite scroll support (seamless looping and circular swiping)
  • Dynamic entry animations (fades, zoom scales, horizontal fanning, sliding, and sequential stacking)
  • Center card overlay builder (dynamic overlays with automatic distance-linked fade transitions)
  • 3D hover/tilt effects (interactive pointer-tracking card tilt in 3D)
  • Mouse scroll wheel and trackpad navigation (throttled desktop/web scroll interaction)
  • Custom viewport fraction (dynamic page scroll width adjustments)
  • Click-to-focus on off-center cards
  • Multi-gesture compatibility (internal card interactions work seamlessly on active cards)
  • Web and desktop drag compatibility (mouse and trackpad swipe support)
  • Suppressed native scrollbars on desktop/web
  • Builder-based API for optimal rendering performance
  • Fully customizable card dimensions
  • Adjustable overlap and spacing
  • Smooth animations and transitions
  • Optional blur effects for side cards
  • Configurable visible card count
  • Adjustable perspective and rotation
  • External controller support
  • Optimized rendering for large datasets
  • Reusable and production-ready

Preview #

[Coverflow Carousel Demo 1] [Coverflow Carousel Demo 2]


Installation #

Add the package to your pubspec.yaml.

dependencies:
  coverflow_carousel: ^1.2.1

OR

Run the command in the terminal in your project root

flutter pub add coverflow_carousel

Then run:

flutter pub get

Basic Usage #

CoverflowCarousel.builder(
    itemCount: 10,
    itemWidth: 250,
    itemHeight: 320,
    itemBuilder: (context, index) {
        return Container(
            decoration: BoxDecoration(
                borderRadius: BorderRadius.circular(24),
                color: Colors.blue,
            ),
        );
    },
)

Controller Support #

Control the carousel from anywhere in your application.

final controller = CoverflowCarouselController();
CoverflowCarousel.builder(
  controller: controller,
  itemCount: items.length,
  itemWidth: 250,
  itemHeight: 320,
  itemBuilder: (context, index) {
    return MyCard(index: index);
  },
)

Navigate Programatically

controller.next();

controller.previous();

controller.animateTo(5);

Entry Animations #

Make the carousel feel organic and alive when it first appears on the screen. Select from staggered fades, zoom scaling, spacing expansions, or horizontal slides.

CoverflowCarousel.builder(
  itemCount: items.length,
  itemWidth: 250,
  itemHeight: 320,
  entryAnimation: CoverflowEntryAnimation.stack, // Physical stacking effect fanning center-out!
  entryAnimationDuration: const Duration(milliseconds: 1000),
  entryAnimationCurve: Curves.easeOutCubic,
  itemBuilder: (context, index) {
    return MyCard(index: index);
  },
)

Available Animation Types: #

  • CoverflowEntryAnimation.none (Default): Instantly mounts without animation.
  • CoverflowEntryAnimation.fadeIn: Staggered opacity fade-in from the center outward.
  • CoverflowEntryAnimation.scaleUp: Staggered zoom scale-up from the center outward.
  • CoverflowEntryAnimation.spacingExpand: Cards fan out horizontally from a center stack.
  • CoverflowEntryAnimation.staggeredSlide: Staggered slides in from left/right/top.
  • CoverflowEntryAnimation.fadeScale: Smooth staggered zoom and fade combined.
  • CoverflowEntryAnimation.stack: Physical stacking effect where cards scale down from the front fanning center-to-outside.

Center Card Overlay #

Stack custom widgets (like play buttons, badges, overlays) directly on the active centered card. Overlays automatically fade out smoothly as the card moves away from the center.

CoverflowCarousel.builder(
  itemCount: items.length,
  itemWidth: 250,
  itemHeight: 320,
  centerOverlayBuilder: (context, index) {
    return Positioned(
      bottom: 20,
      right: 20,
      child: FloatingActionButton(
        onPressed: () => print("Playing $index"),
        child: Icon(Icons.play_arrow),
      ),
    );
  },
  itemBuilder: (context, index) => MyCard(index: index),
)

3D Hover/Tilt Effect #

Bring your carousel to life on web and desktop. The focused card tilts in 3D space tracking the user's mouse movements. When the mouse leaves, the card smoothly decelerates back to center.

Configure tilt support with:

  • enableHoverTilt: Whether to enable 3D hover/tilt effects on the center card (defaults to true).
  • maxHoverTiltAngle: The maximum rotation angle in radians (defaults to 0.15, approximately 8.5 degrees).

Mouse Scroll Wheel Navigation #

Support scroll wheel and trackpad swipe movements to change pages. Navigation requests are automatically throttled relative to the transition animation duration to guarantee smooth transitions.


Parameters #

Parameter Type Description
itemCount int Number of carousel items
itemBuilder IndexedWidgetBuilder Builds each carousel item
itemWidth double Width of the focused card
itemHeight double Height of the focused card
visibleItems int Number of visible cards on each side of focused item (default: 3)
initialPage int Initial focused page index (default: 0)
nearCardSpacing double Spacing for adjacent cards (default: 45)
farCardSpacing double Spacing for distant cards (default: 50)
skewAngle double Card rotation angle (default: -0.35)
perspective double 3D perspective intensity (default: 0.0025)
obscure double Blur intensity for side cards (default: 0)
controller CoverflowCarouselController? External carousel controller
animationDuration Duration Navigation animation duration (default: 350ms)
animationCurve Curve Navigation animation curve (default: Curves.easeOutCubic)
viewportFraction double PageView swipe sensitivity and width ratio (default: 0.25)
isInfinite bool Enable circular scrolling loop (default: false)
entryAnimation CoverflowEntryAnimation Entrance animation type (default: .none)
entryAnimationDuration Duration Entrance animation duration (default: 600ms)
entryAnimationCurve Curve Entrance animation curve (default: Curves.easeOutCubic)
centerOverlayBuilder Widget Function(BuildContext, int)? Builder for overlays stacked on the active centered card (default: null)
enableHoverTilt bool Enable 3D hover/tilt effects on the active centered card (default: true)
maxHoverTiltAngle double Maximum tilt angle in radians applied during mouse hover (default: 0.15)

Perfect For #

  • Music Applications
  • Movie & Streaming Platforms
  • E-commerce Product Showcases
  • Galleries & Portfolios
  • Travel Applications
  • Educational Apps
  • Gaming Interfaces
  • Modern Mobile Experiences

Unlike traditional carousels, Coverflow Carousel creates depth and focus through:

  • 3D perspective transformations
  • Dynamic card scaling
  • Adjustable overlap layouts
  • Smooth animations
  • Responsive sizing
  • Programmatic navigation

The result is a premium browsing experience that feels modern, immersive, and intuitive.


Additional Information #

Coverflow Carousel is designed to provide a beautiful and highly customizable 3D coverflow-style carousel experience for Flutter applications.

Issues & Bug Reports #

If you encounter a bug or unexpected behavior, please open an issue with:

  • Flutter version
  • Package version
  • Steps to reproduce
  • Expected behavior
  • Screenshots or recordings (if applicable)

Feature Requests #

Suggestions and feature requests are always welcome. If you have an idea that could improve the package, feel free to create an issue describing the use case and proposed solution.

Contributing #

Contributions are welcome. Whether it's fixing bugs, improving documentation, optimizing performance, or adding new features, pull requests are appreciated.

Before submitting a pull request:

  1. Ensure the code follows Dart and Flutter best practices.
  2. Test your changes thoroughly.
  3. Update documentation when necessary.
  4. Add examples for new features.

Support #

For questions, issues, or suggestions, please use the project's GitHub Issues page.

Future Development #

Planned improvements include:

  • Customizable layout coordinates for vertical coverflow carousels

Thank you for using Coverflow Carousel!

12
likes
0
points
392
downloads

Publisher

verified publishermuditjpalvadi.tech

Weekly Downloads

A highly customizable 3D coverflow-style carousel for Flutter with smooth animations, perspective effects, and controller support.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on coverflow_carousel