v2.1.5m3_carousel
Material Design 3 カルーセル(https://m3.material.io/components/carousel/overview)の Flutter 実装。
Material Design 3 カルーセル(https://m3.material.io/components/carousel/overview)の Flutter 実装。
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
A flutter implementation of the Material Design 3 carousel.
Built on the CarouselView.
Hero carousel with support for "left", "center" and "right" alignments.
Contained carousel. Extended view inclusive.
Uncontained carousel.
Horizontal or vertical scrolling via axis.
In your pubspec.yaml
dependencies:
m3_carousel: ^2.1.4 # requires Dart => ^3.12.0, Flutter >=3.38.0
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.
Use of CarouselView is govern by the Flutter Authors LICENSE
MIT license
依存関係一覧 4 件
^1.18.0{"sdk":"flutter"}{"sdk":"flutter"}^2.0.0用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗