FLUTTER ECOSYSTEM

paadevelopments/m3_carousel

Material Design 3 कैरोसल (https://m3.material.io/components/carousel/overview) का एक Flutter वास्तुकला।

m3_carousel प्रोजेक्ट कवर
Stars
15
Forks
8
अंतिम पुश (UTC)
26 जुल॰ 2026
प्रोजेक्ट स्थिति
सक्रिय
Paa GitHub avatar
GITHUB User

Paa ↗

Mobile App Engineer (Flutter | Native Android | React)

Accra, Ghana.
भाषाएँDartC++CMakeCSwiftHTMLShellPythonObjective-CJavaKotlin

तकनीकी विषय

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 4 आइटम
  • collection^1.18.0
  • flutter{"sdk":"flutter"}
  • flutter_testडेवलपमेंट{"sdk":"flutter"}
  • flutter_lintsडेवलपमेंट^2.0.0

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

M3_Carousel

A flutter implementation of the Material Design 3 carousel. Built on the CarouselView.

Feature Highlights

  • Hero carousel with support for "left", "center" and "right" alignments.
    https://raw.githubusercontent.com/paadevelopments/m3_carousel/main/extras/hero_v2.gif

  • Contained carousel. Extended view inclusive.
    https://raw.githubusercontent.com/paadevelopments/m3_carousel/main/extras/contained_v2.gif

  • Uncontained carousel.
    https://raw.githubusercontent.com/paadevelopments/m3_carousel/main/extras/uncontained_v2.gif

  • Horizontal or vertical scrolling via axis.

Installing

In your pubspec.yaml

dependencies:
  m3_carousel: ^2.1.4 # requires Dart => ^3.12.0, Flutter >=3.38.0

Usage

import "package:m3_carousel/m3_carousel.dart";

M3Carousel(
    type: CarouselType.hero,
    heroAlignment: HeroAlignment.center,
    axis: Axis.horizontal,
    onTap: (int tapIndex) => log(tapIndex.toString()),
    children: List<Widget>.generate(10, (int index) {
        return ColoredBox(
            color: Colors.primaries[index % Colors.primaries.length]
                .withValues(alpha: 0.8),
            child: const SizedBox.expand(),
        );
    }),
),

See example/lib/main.dart for complete examples.

Reference

Use of CarouselView is govern by the Flutter Authors LICENSE

License

MIT license