Carousel constructor
- {required List<
CardTransform> transforms, - required CarouselCardBuilder builder,
- required int selectableCardId,
- double pageViewHeight = 300,
- void onPageChanged(
- int value
- AlignmentGeometry alignment = AlignmentDirectional.topStart,
- void onCardClick(
- int value
- int initialPage = 0,
- bool allowInfiniteScrollingBackwards = false,
- Key? key}
Animated cards by swiping. Each card can change its rotation, position and scale when swiping the cards. Transform path can be privided using transforms
Implementation
const Carousel({
required this.transforms,
required this.builder,
required this.selectableCardId,
this.pageViewHeight = 300,
this.onPageChanged,
this.alignment = AlignmentDirectional.topStart,
this.onCardClick,
this.initialPage = 0,
this.allowInfiniteScrollingBackwards = false,
super.key,
});