HorizontalCardPager(
initialPage : 2// default value is 2
onPageChanged: (page) => print("page : $page"),
onSelectedItem: (page) => print("selected : $page"),
items: { ... }, // set ImageCardItem or IconTitleCardItem class
))
Put CardItem object in items parameter in HorizontalCardPager
If the contents of the card contain only images, use the ImageCardItem class. and If the contents of the card include an icon and a title, use the IconTitleCardItem class.