Skip to main content
AIR Kit exposes native Flutter UI for login and several hosted UI flows through AirService. APIs below match the Reference Flutter tab.

Prerequisites

  • Initialization with a valid GlobalKey<NavigatorState> on MaterialApp
  • For Swap, On-ramp, and MFA below: an authenticated session after login
  • Optional: preloadWallet() before opening wallet UIs for smoother first open

Login

login presents native Flutter UI for the configured login methods. After initialize(), call login with your Partner JWT (authToken) as described in User login & sessions (Flutter tab).

Swap UI

await airService.showSwapUi();

On-ramp UI

await airService.showOnRampUi(
  displayCurrencyCode: 'USD',
  targetCurrencyCode: 'ETH', // optional
);

MFA setup

await airService.setupOrUpdateMfa();
Check status via getUserInfo()user.isMFASetup (see Reference models).

Theming, locale, and currency

Web SDK uses sessionConfig / updateSessionConfig on init. For Flutter, confirm behavior in your SDK version and Release notes. Dashboard and partner configuration also affect login and widget appearance — see Theming and Language & currency for product-level options.

Web-first built-in UI

Some Account Services UIs documented under Built-in UI are Web-first; Flutter parity varies by release. Confirm APIs and behavior in the Reference Flutter tab and Release notes.

Next steps