debit_credit_card_widget 1.0.2

SDKflutter
Platformandroidioswindowslinuxmacosweb

A Flutter widget for displaying debit and credit card designs.

Debit Credit Card Widget

A Flutter widget for displaying debit and credit card designs.

Example Image

Installation

To use this package, add debit_credit_card_widget as a dependency in your pubspec.yaml file:

dependencies:
  debit_credit_card_widget: ^1.0.2

Getting started

Import the package into your Flutter code:

import 'package:debit_credit_card_widget/debit_credit_card_widget.dart';

Usage

To create a DebitCreditCardWidget, simply instantiate it with the desired properties:

DebitCreditCardWidget(
cardHolderName: "John Doe",
cardNumber: "0000000000000000",
cardExpiry: "1224",
// ... other properties
),

Properties

ParamDescription
widthGive specific width to the card (take as much space available by default).
cardHolderNameAllow you to set the cardholder's name("John Doe" - Default).
cardNumberAllow you to set the card Number("4 X 0000" - Default)(Max 16).
cardExpiryAllow you to set the card Expiry("0000" - Default)(Max 4).
validFromAllow you to set the card Valid From(Max 4).
cardDecorationAllows you to customize whole card decoration.
textColorAllows you to change Text Color(White - Default).
color1Allows you to change Gradient First Color(Pink Accent - Default).
color2Allows you to change Gradient Second Color(Black - Default).
showNFCAllows you to show Hide NFC Logo.
cardBrandCardBrand Enum can be Used to Specify card brand (eg.CardBrand.visa).
cardBrandImageIf cardBrand is set to CardBrand.custom cardBrandImage will be used.
cardTypeCardType Enum can be Used to Specify card brand (eg.CardType.credit).
customCardTypeIf cardType is set to CardType.custom customCardType will be used.
customCompanyImageAllows you to add custom image to top right of the card.
backgroundDecorationImageAllows you to add background image int he card.

License

This package is open-source and released under the MIT License.

Issues and Contributions

Please report any issues or contribute to this project on GitHub.

Additional information