パッケージ、リポジトリ、アプリカテゴリを検索

credit_card_input_form のカバー
パッケージ詳細v2.3.0

credit_card_input_form

このパッケージは、クレジットカード情報入力フォームのアニメーションを通じて、視覚的に美しいUXを提供します。

AndroidiOS
30日間ダウンロード
138
いいね数
62
Pub ポイント
110

パッケージをインストール

flutter pub add credit_card_input_form

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutterパッケージで、美しくアニメーション付きのクレジットカード入力フォームを提供し、支払いデータ入力時のユーザー体験を向上させます。ユーザーがカード情報を入力する際、スムーズなアニメーションとリアルタイムの視覚フィードバックを提供し、参加感を高め、入力エラーを減らします。モダンなUI原則に基づいて設計されており、AndroidおよびiOSの両方のプラットフォームをサポートしており、出荷時から洗練された外観を提供します。セキュアかつ直感的なカード情報収集が必要なアプリに最適です。

用途

  • 支払い処理フォーム
  • ECOMMERCEチェックアウトフロー
  • モバイルバンキングアプリケーション
  • デジタルウォレットの統合
  • カード設定によるユーザーのオンボーディング

主な機能

  • アニメーションカード番号入力
  • リアルタイムカードタイプ検出
  • スムーズな視覚的遷移
  • すべての画面サイズに対応するレスポンシブデザイン
  • 組み込みのプレースホルダーアニメーション

適している対象

  • 洗練された決済UIを求める開発者
  • 財務ワークフローにおけるユーザー体験に焦点を当てたアプリ
  • カード入力に最小限のセットアップを必要とするプロジェクト

注意事項

  • バックエンドの支払い処理を含まない
  • 機密データのセキュリティを手動で管理する必要があります
  • スタイル以外のカスタマイズは限定的
  • フォーマットチェック以外の組み込み検証はなし

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。


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.3.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

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。