Skip to content
Get started
Menu
Get started

Installation

Install rakit_ui 0.9.0 from pub.dev.

  • Dart ^3.12.0 and 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_localizations from the Flutter SDK, for the Material and Cupertino delegates you register next to PaymentLocalizations.delegate.
Terminal window
flutter pub add rakit_ui

Include the Flutter localization delegates when using the quick start:

pubspec.yaml
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
rakit_ui: ^0.9.0

Pin v0.9.0 to install the same release from GitHub:

pubspec.yaml
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
rakit_ui:
git:
url: https://github.com/naufaldi/flutter_ui_payment
ref: v0.9.0

To try changes after this release, set ref: main instead. The quick start uses 0.9.0 from pub.dev.

Use this when the package sits next to your app on disk, for example while evaluating it.

pubspec.yaml
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
rakit_ui:
path: ../flutter_ui_payment

Then fetch packages:

Terminal window
flutter pub get

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.0
import '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.

Everything is exported from one library:

import 'package:rakit_ui/rakit_ui.dart';

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:

pubspec.yaml
dependencies:
video_player: ^2.11.1 # Android minSdk 24, iOS 13

Continue with the Quick start: localization, theme, and a full checkout.