horizontal_card_pager
1.1.1, released 6 years ago by an unverified publisher
Horizontal card pager widget for Flutter with image or icon‑title cards.
What it does
Provides a horizontally scrolling pager of cards that can display either images or an icon with a title. The widget offers callbacks for page changes and item selection and works on mobile, web, and desktop platforms.
AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a simple horizontal carousel of custom cards
- You want built‑in support for both image‑only and icon‑title card layouts
- You require a widget that works on web as well as mobile
Skip it when
- You need vertical paging (use the separate Vertical Card Pager)
- You require extensive animation or indicator customization beyond the provided API
- You need a highly configurable carousel with many layout options
Strengths
- Easy to integrate with minimal code
- Supports both image and icon‑title card types
- Null‑safety and web support
Weaknesses
- Limited to horizontal direction only
- Customization options are basic
- No built‑in page indicators
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
HorizontalCardPager(
initialPage: 2,
onPageChanged: (page) => print('page : $page'),
onSelectedItem: (page) => print('selected : $page'),
items: {
0: ImageCardItem(image: Image.asset('assets/img1.png')),
1: IconTitleCardItem(iconData: Icons.star, text: 'Star'),
},
);Alternatives
Packages that do the same job and could replace horizontal_card_pager.
- vertical_card_pager
Use dynamic and beautiful card view pagers to help you create great apps.
42Compare - flutter_toggle_tab
A customisable toggle tab widget for Flutter with animated selection and adaptive widths.
80Compare - ftoast
Simple, customizable in-app toast notifications for Flutter.
65Compare - u_credit_card
Flutter widget for customizable credit card UI with animations
74Compare