Carousel constructor

const Carousel(
  1. {required List<CardTransform> transforms,
  2. required CarouselCardBuilder builder,
  3. required int selectableCardId,
  4. double pageViewHeight = 300,
  5. void onPageChanged(
    1. int value
    )?,
  6. AlignmentGeometry alignment = AlignmentDirectional.topStart,
  7. void onCardClick(
    1. int value
    )?,
  8. int initialPage = 0,
  9. bool allowInfiniteScrollingBackwards = false,
  10. 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,
});