Search categories, packages and repositories

overlapped_carousel cover
Package detailsv1.0.2

overlapped_carousel

A Flutter package project that is a simple horizontal overlapped_carousel widget.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
616
Likes
75
Pub points
140

Install package

flutter pub add overlapped_carousel

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package providing a simple horizontal overlapped carousel widget, ideal for displaying items with a visually appealing overlap effect. It supports smooth scrolling and is designed for use in apps needing a dynamic, interactive card-like layout. The widget is lightweight and compatible across all major platforms including Android, iOS, Web, macOS, Windows, and Linux. Perfect for showcasing images, products, or content in a modern, engaging way.

Use cases

  • Displaying image galleries
  • Showcasing product cards
  • Creating interactive sliders
  • Presenting featured content
  • Building modern UI layouts

Key features

  • Horizontal overlapping layout
  • Smooth scroll interactions
  • Cross-platform compatibility
  • Lightweight implementation
  • Customizable item spacing
  • Simple integration via pub add

Suitable for

  • Mobile app developers
  • Web application designers
  • UI/UX creators
  • E-commerce interfaces
  • Interactive content displays

Considerations

  • Limited to horizontal orientation
  • No built-in pagination controls
  • Requires manual handling of item selection
  • Not optimized for large datasets
  • Minimal customization options beyond spacing and alignment

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Overlapped Carousel

A horizontal overlapped carousel widget. The center widget will be at the top of the stack.

Demo

Demo 1 Demo 2
demo 1 demo 2

Installation

Add overlapped_carousel: ^1.1.0 to your pubspec.yaml dependencies. And import it:

import 'package:overlapped_carousel/overlapped_carousel.dart';

How to use

Simply add a OverlappedCarousel widget with required params.

  @override
  Widget build(BuildContext context) {
    var screenWidth = MediaQuery.of(context).size.width;
    var screenHeight = MediaQuery.of(context).size.height;
    return Scaffold(
      backgroundColor: Colors.blue,
      //Wrap with Center to place the carousel center of the screen
      body: Center(
        //Wrap the OverlappedCarousel widget with SizedBox to fix a height. No need to specify width.
        child: SizedBox(
          height: min(screenWidth / 3.3 * (16 / 9),screenHeight*.9),
          child: OverlappedCarousel(
            widgets: widgets, //List of widgets
            currentIndex: 2,
            onClicked: (index) {
              ScaffoldMessenger.of(context).showSnackBar(
                SnackBar(
                  content: Text("You clicked at $index"),
                ),
              );
            },
            // To obscure or blur cards not in focus use the obscure parameter.
            obscure: 0.4,
            // To control skew angle
            skewAngle: 0.25,
          ),
        ),
      ),
    );
  }

Categories

Source repository

Projects using this package

No data available yet.