StacCarouselView(
carouselType: StacCarouselViewType.weighted,
padding: StacEdgeInsets.all(12),
backgroundColor: StacColors.white,
elevation: 5.0,
overlayColor: StacColors.red,
itemSnapping: true,
shrinkExtent: 0.0,
scrollDirection: StacAxis.horizontal,
reverse: false,
onTap: {'type': 'callback', 'name': 'onItemTap'},
enableSplash: true,
itemExtent: 300,
flexWeights: [1, 7, 1],
children: [
StacImage(
height: 400,
fit: StacBoxFit.cover,
src: 'https://flutter.github.io/assets-for-api-docs/assets/material/content_based_color_scheme_1.png',
),
StacImage(
height: 400,
fit: StacBoxFit.cover,
src: 'https://flutter.github.io/assets-for-api-docs/assets/material/content_based_color_scheme_2.png',
),
StacImage(
height: 400,
fit: StacBoxFit.cover,
src: 'https://flutter.github.io/assets-for-api-docs/assets/material/content_based_color_scheme_3.png',
),
],
)