indzcreditcard 0.1.5 copy "indzcreditcard: ^0.1.5" to clipboard
indzcreditcard: ^0.1.5 copied to clipboard

outdated

A Credit Card widget package, support entering card details, card flip animation.

Indzooom Credit Card Widget #

A Flutter package allows you to easily implement the Credit card's UI easily with the Card detection.

Installing #

  1. Add dependency to pubspec.yaml

    Get the latest version in the 'Installing' tab on br.com.indzooom

dependencies:
    indzcreditcard: ^0.1.4
  1. Import the package
import 'package:indzcreditcard/indzcreditcard.dart';
  1. Adding CreditCardWidget

With required parameters


    CreditCardWidget(
        cardNumber: cardNumber,
        expiryDate: expiryDate,
        cardHolderName: cardHolderName,
        cvvCode: cvvCode,
        cPass1: cPass1,
        cPass2: cPass2,
        showBackView: isCvvFocused, //true when you want to show cvv(back) view
    ),

With optional parameters

    CreditCardWidget(
        cardNumber: cardNumber,
        expiryDate: expiryDate,
        cardHolderName: cardHolderName,
        cvvCode: cvvCode,
        cPass1: cPass1,
        cPass2: cPass2,
        showBackView: isCvvFocused,
        cardbgColor: Colors.black,
        height: 175,
        textStyle: TextStyle(color: Colors.yellowAccent),
        width: MediaQuery.of(context).size.width,
        animationDuration: Duration(milliseconds: 1000),
        ),
  1. Adding CreditCardForm
    CreditCardForm(
      themeColor: Colors.red,
      onCreditCardModelChange: (CreditCardModel data) {},
    ),

How to use #

Check out the example app in the example directory or the 'Example' tab on br.com.indzooom for a more complete example.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Credit #

This package's animation is inspired from from this Dribbble art.

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Credit Card widget package, support entering card details, card flip animation.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on indzcreditcard