Pakete, Repositories und App-Kategorien suchen

Cover von checkout_screen_ui
Paketdetailsv1.1.0

checkout_screen_ui

Eine vorgefertigte Benutzeroberfläche, die einen Checkout-Bildschirm darstellt und mit Ihrer eigenen Logik kombiniert werden soll.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
118
Likes
45
Pub-Punkte
160

Paket installieren

flutter pub add checkout_screen_ui

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Ein vorgefertigtes UI-Element für einen Zahlungsbildschirm, das nahtlos mit benutzerdefinierten Geschäftslogiken integriert werden kann. Es bietet eine ansprechende, reaktionsfähige Benutzeroberfläche zur Erfassung von Zahlungsinformationen wie Kartennummer, Ablaufdatum und CVV und ist für E-Commerce- und Abonnementanwendungen geeignet. Die Benutzeroberfläche ist auf mehreren Plattformen optimiert und sorgt für ein konsistentes Nutzererlebnis unter Android, iOS, Web, macOS, Windows und Linux. Aufbauend auf der Flexibilität von Flutter ermöglicht es Entwicklern, sich auf die Backend-Verarbeitung zu konzentrieren, während sie einen professionellen Zahlungsablauf bereitstellen.

Anwendungsfälle

  • E-Commerce-Kassenabläufe
  • Abonnementzahlungserhebung
  • Mobile und Web-Zahlungsschnittstellen
  • Käufe digitaler Produkte
  • Multiplattform-Zahlungsanwendungen
  • Schnelle Integration in bestehende Flutter-Projekte

Hauptmerkmale

  • Vordefiniertes, reaktives Checkout-Layout
  • Plattformübergreifende Kompatibilität
  • Einfache Integration mit benutzerdefiniertem Logik
  • Karten-Eingabeverifizierungshinweise
  • Sauberer, moderner Designansatz
  • Unterstützung für alle wichtigen Plattformen

Geeignet für

  • Flutter-Entwickler, die Zahlungsfunktionen erstellen
  • Startups, die eine schnelle Checkout-Implementierung benötigen
  • Apps, die eine konsistente Querplattform-UX erfordern
  • Entwickler, die Design-Konsistenz priorisieren
  • Teams konzentrieren sich auf Backend-Logik statt auf UI-Design

Hinweise

  • Enthält keine Zahlungsverarbeitungslogik
  • Erfordert Integration mit Backend oder Zahlungsgateway
  • Möglicherweise Anpassung für markenspezifische Gestaltung erforderlich
  • Nicht für den Produktiveinsatz ohne zusätzliche Sicherheitsmaßnahmen vorgesehen
  • Beschränkt auf die Benutzeroberfläche; keine integrierte Tokenisierung oder PCI-Konformität

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

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.

Kategorien

Abhängigkeiten

Abhängigkeiten 3 Einträge

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

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.