All Projects → Origogi → Flutter Credit Card Input Form

Origogi / Flutter Credit Card Input Form

Licence: bsd-2-clause
Flutter Credit Card Input form

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Flutter Credit Card Input Form

Google nav bar
A modern google style nav bar for flutter.
Stars: ✭ 290 (+44.28%)
Mutual labels:  flutter-apps, flutter-plugin
Bottom navy bar
A beautiful and animated bottom navigation
Stars: ✭ 653 (+224.88%)
Mutual labels:  flutter-apps, flutter-plugin
Flutter page transition
This is Flutter Page Transition Package
Stars: ✭ 314 (+56.22%)
Mutual labels:  flutter-apps, flutter-plugin
http middleware
A middleware library for Dart's http library.
Stars: ✭ 38 (-81.09%)
Mutual labels:  flutter-plugin, flutter-apps
Flutter Cinema
Learn to create flutter app with BLoC Architecture
Stars: ✭ 26 (-87.06%)
Mutual labels:  flutter-apps, flutter-plugin
Flutter i18n
This plugin create a binding between your translations from .arb files and your Flutter app.
Stars: ✭ 255 (+26.87%)
Mutual labels:  flutter-apps, flutter-plugin
Flutter Learning
🔥 👍 🌟 ⭐ ⭐⭐ Flutter all you want.Flutter install,flutter samples,Flutter projects,Flutter plugin,Flutter problems,Dart codes,etc.Flutter安装和配置,Flutter开发遇到的难题,Flutter示例代码和模板,Flutter项目实战,Dart语言学习示例代码。
Stars: ✭ 4,941 (+2358.21%)
Mutual labels:  flutter-apps, flutter-plugin
nepali date picker
Material Style Date Picker with Bikram Sambat(Nepali) Calendar Support. Supports both Android and ios.
Stars: ✭ 30 (-85.07%)
Mutual labels:  flutter-plugin, flutter-apps
Flutter thrio
flutter_thrio makes it easy and fast to add flutter to existing mobile applications, and provide a simple and consistent navigator APIs.
Stars: ✭ 717 (+256.72%)
Mutual labels:  flutter-apps, flutter-plugin
Liquid swipe flutter
A flutter based liquid swipe
Stars: ✭ 680 (+238.31%)
Mutual labels:  flutter-apps, flutter-plugin
A-Complete-Guide-To-Flutter
This repo contains all the small snippets related to Flutter Apps. Most of the projects/apps are deployed on Flutter Web using GitHub Actions CI Pipeline.
Stars: ✭ 70 (-65.17%)
Mutual labels:  flutter-plugin, flutter-apps
Math Metrix
This is Math-Puzzle game made in flutter and available on Playstore & AppStore
Stars: ✭ 48 (-76.12%)
Mutual labels:  flutter-apps, flutter-plugin
Flutter-Apps
🌀 This is mainly focus on a complete application for production
Stars: ✭ 18 (-91.04%)
Mutual labels:  flutter-plugin, flutter-apps
Qrcode scanner
🛠 Flutter QR code scanner plugin.
Stars: ✭ 274 (+36.32%)
Mutual labels:  flutter-apps, flutter-plugin
flutter-tunein
Dynamically themed Music Player built with flutter
Stars: ✭ 108 (-46.27%)
Mutual labels:  flutter-plugin, flutter-apps
Flutter effects
flutter animation effects | custom widget | custom renderobject
Stars: ✭ 421 (+109.45%)
Mutual labels:  flutter-apps, flutter-plugin
swipedetector
A Flutter package to detect up, down, left, right swipes.
Stars: ✭ 34 (-83.08%)
Mutual labels:  flutter-plugin, flutter-apps
Web Vuw
A Web View for flutter
Stars: ✭ 40 (-80.1%)
Mutual labels:  flutter-plugin, flutter-apps
Flutter Examples
An ultimate cheatbook of curated designs
Stars: ✭ 675 (+235.82%)
Mutual labels:  flutter-apps, flutter-plugin
Awesome Flutter
An awesome list that curates the best Flutter libraries, tools, tutorials, articles and more.
Stars: ✭ 38,582 (+19095.02%)
Mutual labels:  flutter-apps, flutter-plugin

This package provides visually beautiful UX through animation of credit card information input form.

Preview

Installing

  1. Add dependency to pubspec.yaml

    Get the latest version in the 'Installing' tab on pub.dartlang.org

dependencies:
    credit_card_input_form: ^2.2.0
  1. Import the package
import 'package:credit_card_input_form/credit_card_input_form.dart';
  1. Adding CreditCardInputForm

With optional parameters

 CreditCardInputForm(
   cardHeight: 170,
   showResetButton : true,
   onStateChange: (currentState, cardInfo) {
     print(currentState);
     print(cardInfo);
   },
   customCaptions: {...}, 
   frontCardDecoration: cardDecoration,
   backCardDecoration: cardDecoration,
   prevButtonDecoration: buttonStyle,
   nextButtonDecoration: buttonStyle,
   resetButtonDecoration : buttonStyle,
   prevButtonTextStyle: buttonTextStyle,
   nextButtonTextStyle: buttonTextStyle,
   resetButtonTextStyle: buttonTextStyle,
   initialAutoFocus: true, // optional

),

How to use

Check out the example app in the example directory or the 'Example' tab on pub.dartlang.org for a more complete example.

New Feature

v1.3.0

added custom button style feature

Default Custom
default custom
final buttonDecoration = BoxDecoration(
    borderRadius: BorderRadius.circular(30.0),
    gradient: LinearGradient(
        colors: [
          const Color(0xfffcdf8a),
          const Color(0xfff38381),
        ],
        begin: const FractionalOffset(0.0, 0.0),
        end: const FractionalOffset(1.0, 0.0),
        stops: [0.0, 1.0],
        tileMode: TileMode.clamp),
  );

  final buttonTextStyle =
      TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 18);

  CreditCardInputForm(
    prevButtonDecoration: buttonDecoration,
    nextButtonDecoration: buttonDecoration,
    prevButtonTextStyle: buttonTextStyle,
    nextButtonTextStyle: buttonTextStyle,
    resetButtonTextStyle: buttonTextStyle,
  ),

v2.0.0

It provides more options using boxdecoration that can only change the color of the card.

Default Custom
image image
  final cardDecoration = BoxDecoration(
    boxShadow: <BoxShadow>[
      BoxShadow(color: Colors.black54, blurRadius: 15.0, offset: Offset(0, 8))
    ],
    gradient: LinearGradient(
        colors: [
          Colors.red,
          Colors.blue,
        ],
        begin: const FractionalOffset(0.0, 0.0),
        end: const FractionalOffset(1.0, 0.0),
        stops: [0.0, 1.0],
        tileMode: TileMode.clamp),
    borderRadius: BorderRadius.all(Radius.circular(15)));


    CreditCardInputForm(
      frontCardDecoration: cardDecoration,
      backCardDecoration: cardDecoration,
    ),
  ]),

v2.1.0

implement a new feature to add an initial value when creating a widget

Code Preview
CreditCardInputForm(
  ....
  cardCVV: '222',
  cardName: 'Jeongtae Kim',
  cardNumber: '1111111111111111',
  cardValid: '12/12',
  intialCardState: InputState.DONE,
),

ezgif com-gif-maker

v2.2.0

Add initialAutoFocus parameter

3rd party library

Flip card

https://pub.dev/packages/flip_card

For use card flip animation

Provider

https://pub.dev/packages/provider

For use state management

Reference

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

TODO List

  • [x] add RESET button
  • [x] add box decoration param
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].