fancy_credit_card_input
1.1.2, released 4 days ago by rodrigobastos.dev
A highly customizable credit card input field with built-in animations and card brand detection.
What it does
Provides a credit card input component supporting card numbers, expiry dates, and CVVs. It includes built-in animations, automatic brand detection, and validation builders.
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 dedicated credit card input form with built-in formatting and validation.
- You want automatic brand detection while the user types a card number.
Skip it when
- You are handling full payment gateway integration inside the package, as this is just an input field component.
Strengths
- Automatic card brand detection
- Built-in collapsing animations and focus management
- Extensive builder support for deep customization
Weaknesses
- Limited to credit card input UI rather than complete payment processing.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
not documented
FancyCreditCardInput(
onFormCompleted: (cardData) {
print(cardData);
},
)Alternatives
Packages that do the same job and could replace fancy_credit_card_input.
- searchfield
An autocomplete search widget with customizable suggestions, validation, and keyboard navigation.
79Compare - pin_code_fields
A customizable PIN and OTP input field widget for Flutter with headless core and Material support.
93Compare - table_calendar
Highly customizable, feature-packed calendar widget for Flutter
83Compare - flutter_multi_formatter
Input formatters for international phone numbers, credit/debit cards, currencies, and custom masks.
75Compare
Works with
Packages commonly used together with fancy_credit_card_input: ones it builds on, ones built on it, and its own family.
- flutter_svgfancy_credit_card_input depends on itRenders Scalable Vector Graphics (SVG 1.1) and precompiled vector graphics in Flutter.
- mask_text_input_formatterfancy_credit_card_input depends on itTextInputFormatter for TextField and TextFormField to format input using a given mask.
- fancy_password_fieldSame familyA customizable password input widget with validation rules and strength indicator.
- fancy_shimmer_imageSame familyWidget that loads cached network images with a customizable shimmer loading effect.