Installation
Install rakit_ui 0.9.0 from pub.dev.
Requirements
Section titled “Requirements”- Dart
^3.12.0and Flutter>=3.44.0. Tested with Flutter 3.44.6 stable. - The only dependency is the Flutter SDK. The package adds no network, analytics, media, camera, ad or payment SDK.
flutter_localizationsfrom the Flutter SDK, for the Material and Cupertino delegates you register next toPaymentLocalizations.delegate.
Install from pub.dev
Section titled “Install from pub.dev”flutter pub add rakit_uiInclude the Flutter localization delegates when using the quick start:
dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter rakit_ui: ^0.9.0Development: git dependency
Section titled “Development: git dependency”Pin v0.9.0 to install the same release from GitHub:
dependencies:flutter: sdk: flutterflutter_localizations: sdk: flutterrakit_ui: git: url: https://github.com/naufaldi/flutter_ui_payment ref: v0.9.0To try changes after this release, set ref: main instead. The quick start uses 0.9.0 from pub.dev.
Development: path dependency
Section titled “Development: path dependency”Use this when the package sits next to your app on disk, for example while evaluating it.
dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter rakit_ui: path: ../flutter_ui_paymentThen fetch packages:
flutter pub getMigrating from flutter_ui_payment
Section titled “Migrating from flutter_ui_payment”Rakit UI continues the same UI kit under the rakit_ui package name. Replace the old dependency and update imports:
dependencies: rakit_ui: ^0.9.0import 'package:rakit_ui/rakit_ui.dart';Remove flutter_ui_payment from your dependencies, then run flutter pub get. Widget names, theme APIs, models and host callbacks are unchanged. Code that names the KitStrings or PaymentStatusLabel extensions needs the 0.2.0 localization migration. Replace private package:flutter_ui_payment/src/... imports with the public Rakit UI API where possible.
The old package and its published versions remain available for existing apps. Use one package identity throughout an app: types from the two separately published packages are distinct. The compatibility filename package:rakit_ui/flutter_ui_payment.dart forwards to the new library, but does not redirect old-package imports.
Import
Section titled “Import”Everything is exported from one library:
import 'package:rakit_ui/rakit_ui.dart';Optional: video
Section titled “Optional: video”PaymentVideoPlayer needs a media engine, and the package ships none. If you use it, add a player such as the official video_player plugin to your app and adapt it (see Media). The example app uses:
dependencies: video_player: ^2.11.1 # Android minSdk 24, iOS 13Continue with the Quick start: localization, theme, and a full checkout.