패키지, 저장소 및 앱 카테고리 검색

checkout_screen_ui 표지
패키지 상세v1.1.0

checkout_screen_ui

자신의 로직과 결합하여 사용하도록 설계된 사전 구축된 체크아웃 화면을 나타내는 UI입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
118
좋아요
45
Pub 점수
160

패키지 설치

flutter pub add checkout_screen_ui

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

사전에 구축된 결제 화면용 UI 컴포넌트로, 사용자 정의 비즈니스 로직과 원활하게 통합되도록 설계되었습니다. 카드 입력, 만료일, CVV 등 결제 정보를 수집하기 위한 세련되고 반응성 있는 인터페이스를 제공하며, 전자상거래 및 구독 앱에 적합합니다. Android, iOS, 웹, macOS, Windows, Linux 등 여러 플랫폼에서 최적화되어 일관된 사용자 경험을 보장합니다. Flutter의 유연성을 고려하여 제작되어 개발자는 백엔드 처리에 집중하면서도 전문적인 결제 흐름을 제공할 수 있습니다.

사용 사례

  • 전자상거래 체크아웃 흐름
  • 구독 결제 수금
  • 모바일 및 웹 결제 인터페이스
  • 디지털 제품 구매
  • 다중 플랫폼 결제 앱
  • 기존 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

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.