m3_carousel

Last updated:

0 purchases

m3_carousel Image
m3_carousel Images
Add to Cart

Description:

m3 carousel

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.



Contained carousel. Extended view inclusive.



Uncontained carousel.



Installing #
In your pubspec.yaml
dependencies:
m3_carousel: ^2.0.1 # requires Dart => ^3.0.5
copied to clipboard
Usage #
import "package:m3_carousel/m3_carousel.dart";

M3Carousel(
type: "hero",
heroAlignment: "center",
onTap: (int tapIndex) => log(tapIndex.toString()),
children: List<Widget>.generate(10, (int index) {
return ColoredBox(
color: Colors.primaries[index % Colors.primaries.length].withOpacity(0.8),
child: const SizedBox.expand(),
);
}),
),
copied to clipboard
See example/lib/main.dart
for complete examples.
Reference #
Use of CarouselView is govern by the Flutter Authors LICENSE
License #
MIT license

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.