搜尋套件、儲存庫與 APP 分類

套件詳情v0.1.8

credit_card

功能強大且美觀的信用卡小工具,支援自動識別卡類型。

近 30 天下載
84
喜歡數
28
Pub 分數
30

安裝套件

flutter pub add credit_card

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個功能強大且視覺美觀的信用卡小工具,可自動根據輸入檢測卡類型。專為無縫整合到Flutter應用而設計,透過即時驗證和動態樣式提升使用者體驗。該小工具支援主要卡網路上,並提供簡潔現代的介面,非常適合用於付款表單。輕量級且容易實作,適用於電商、金融或任何需要安全卡輸入的應用。

適用情境

  • 支付表單整合
  • 電子商務結帳流程
  • 數位錢包介面
  • 卡號驗證
  • 使用者友善的卡片輸入UI
  • 安全的支付資料收集

主要特色

  • 自動卡類型偵測
  • 即時輸入驗證
  • 支援主要的卡片網路
  • 美觀且可自訂的設計
  • 輕量且易於整合
  • 響應式卡片顯示

適合對象

  • Flutter 開發人員建構支付系統
  • 需要安全卡輸入的應用程式
  • 以使用者介面為重點的金融應用程式
  • 移動電商平台
  • 以設計為導向的支付介面

使用建議

  • 不處理實際的支付處理
  • 需要額外的安全措施來保護敏感數據
  • 限於卡片處理的UI/UX方面
  • 無內建加密或權杖化
  • 不適用於生產環境的支付網關
  • 手動實現以滿足合規性要求

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Flutter Credit Card

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

Codacy Badge

Preview

The example app running in Android

Installing

  1. Add dependency to pubspec.yaml

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

dependencies:
    credit_card: 0.1.6
  1. Import the package
import 'package:credit_card/flutter_credit_card.dart';
  1. Adding CreditCardWidget

With required parameters


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

With optional parameters

    CreditCardWidget(
        cardNumber: cardNumber,
        expiryDate: expiryDate,
        cardHolderName: cardHolderName,
        cvvCode: cvvCode,
        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 pub.dartlang.org 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. This package is basend on flutter_credit_card.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。