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

checkout_screen_ui のカバー
パッケージ詳細v1.1.0

checkout_screen_ui

ご自身のロジックと組み合わせて使用することを目的とした、チェックアウト画面を表す事前構築されたUIです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
118
いいね数
45
Pub ポイント
160

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

flutter pub add checkout_screen_ui

パッケージ概要

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

カスタムビジネスロジックとシームレスに統合できるように設計された、事前に構築されたチェックアウト画面用UIコンポーネントです。カード入力、有効期限、CVVなど、支払い情報を収集するための洗練され、応答性のあるインターフェースを提供し、ECサイトやサブスクリプションアプリに適しています。Android、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームで最適化されており、一貫したユーザー体験を確保します。Flutterの柔軟性を念頭に置いて構築されており、開発者はバックエンド処理に集中しながら、プロフェッショナルなチェックアウトフローを提供できます。

用途

  • ECOMMERCEチェックアウトフロー
  • サブスクリプション支払いの収集
  • モバイルおよびウェブ決済インターフェース
  • デジタル製品の購入
  • マルチプラットフォーム決済アプリ
  • 既存のFlutterプロジェクトへの迅速な統合

主な機能

  • 事前設計された応答性のあるチェックアウトレイアウト
  • クロスプラットフォーム互換性
  • カスタムロジックとの簡単な統合
  • カード入力検証ヒント
  • 洗練された、モダンなデザイン言語
  • すべての主要プラットフォームに対応

適している対象

  • Flutter開発者が支払い機能を構築しています
  • 迅速なチェックアウト実装が必要なスタートアップ
  • 一貫したクロスプラットフォームUXを必要とするアプリ
  • デザインの一貫性を重視する開発者
  • チームはUIデザインよりもバックエンドロジックに焦点を当てる

注意事項

  • 支払い処理ロジックを含んでいません
  • バックエンドまたは決済ゲートウェイとの統合が必要です
  • ブランド固有のスタイリング用にカスタマイズが必要になる場合があります
  • 追加のセキュリティ対策なしでは、本番環境での使用を想定していません
  • UIに限定;組み込みのトークナイゼーションやPCI準拠なし

元の README

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

A Widget representing a checkout screen that accepts native and credit card payments along with a button for cash payments if your system has 'in person' payments. This is a UI only widget and is meant to compliment whatever third party transaction api system you are using.

Includes a CreditCardForm widget that allows you to utilize only the credit card form without the rest of the checkout screen if desired.

Security and PCI scope

This package is UI only. Card data exists in memory inside Flutter text controllers while the user types. Never log CardFormResults or raw PAN/CVC in production. In release and profile builds, CardFormResults.toString() is redacted; in debug builds it includes full values for developer convenience—still do not persist it or ship debug logs that contain card data. Send card data only to your PCI-compliant processor (for example Stripe) over TLS, following their integration guidance.

Installation

In the pubspec.yaml of your Flutter project, add:

dependencies:
  checkout_screen_ui: ^1.1.0

Import the barrel (recommended) or specific libraries:

import 'package:checkout_screen_ui/checkout_screen_ui.dart';
// or
import 'package:checkout_screen_ui/checkout_ui.dart';

Usage

The main entry point is CheckoutPage with a CheckoutData object:

final List<PriceItem> priceItems = [
  PriceItem(name: 'Product A', quantity: 1, itemCostCents: 5200),
  PriceItem(name: 'Product B', quantity: 2, itemCostCents: 8599),
];

CheckoutPage(
  data: CheckoutData(
    priceItems: priceItems,
    payToName: 'Vendor Name',
    taxRate: 0.07,
    displayNativePay: true,
    isApple: Platform.isIOS,
    onNativePay: (result) { /* ... */ },
    onCashPay: (result) { /* ... */ },
    onCardPay: (card, result) {
      // card: CardFormResults — never log in production
      // result: CheckOutResult — items, subtotal, tax, total in cents
    },
    onBack: () => Navigator.of(context).pop(),
  ),
  footer: CheckoutPageFooter(
    termsLink: 'https://example.com/terms',
    privacyLink: 'https://example.com/privacy',
  ),
);

Optional theming:

MaterialApp(
  theme: ThemeData(
    extensions: const [
      CheckoutTheme(
        chargeAmountColor: Colors.teal,
        nativePayBackgroundColor: Colors.black,
        nativePayForegroundColor: Colors.white,
      ),
    ],
  ),
  // ...
);

Additional information

If a feature is missing (the Dart language is always evolving) or you'd like an easier or better way to do something, consider opening a pull request. You can always file an issue, but generally speaking feature requests will be on a best-effort basis.

カテゴリー

依存関係

依存関係一覧 3 件

  • text_form_field_wrapper^1.0.0
  • url_launcher^6.3.2
  • url_launcher_web^2.4.2

ソースリポジトリ

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

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