Skip to content
pubscout

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.

WASM-ready
$ flutter pub add fancy_credit_card_input
Source repository

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.

  • pin_code_fields

    A customizable PIN and OTP input field widget for Flutter with headless core and Material support.

  • table_calendar

    Highly customizable, feature-packed calendar widget for Flutter

  • flutter_multi_formatter

    Input formatters for international phone numbers, credit/debit cards, currencies, and custom masks.

Works with

Packages commonly used together with fancy_credit_card_input: ones it builds on, ones built on it, and its own family.