solana_kit_wallet_ui 0.1.3 copy "solana_kit_wallet_ui: ^0.1.3" to clipboard
solana_kit_wallet_ui: ^0.1.3 copied to clipboard

Responsive Material, Cupertino, and adaptive wallet UI for Solana Kit.

solana_kit_wallet_ui #

pub package CI coverage

Responsive Material, Cupertino, and adaptive wallet UI for Solana Kit. The defaults are production-ready, but every visible layer can be replaced without forking the package.

Installation #

dependencies:
  solana_kit_wallet_ui: ^0.1.0

Adaptive defaults #

import 'package:flutter/widgets.dart';
import 'package:solana_kit_wallet_adapter/solana_kit_wallet_adapter.dart';
import 'package:solana_kit_wallet_ui/adaptive.dart';

Widget buildWalletButton(WalletController walletController) =>
    AdaptiveWalletButton(controller: walletController);

The adaptive entrypoint uses Cupertino presentation on iOS and macOS, and Material presentation elsewhere. Pass style when an application deliberately uses one design language on every platform.

Material and Cupertino entrypoints #

import 'package:flutter/widgets.dart';
import 'package:solana_kit_wallet_adapter/solana_kit_wallet_adapter.dart';
import 'package:solana_kit_wallet_ui/material.dart';

Widget buildWalletButton(WalletController walletController) =>
    MaterialWalletButton(controller: walletController);
import 'package:flutter/widgets.dart';
import 'package:solana_kit_wallet_adapter/solana_kit_wallet_adapter.dart';
import 'package:solana_kit_wallet_ui/cupertino.dart';

Widget buildWalletButton(WalletController walletController) =>
    CupertinoWalletButton(controller: walletController);

Compact viewports use a bottom sheet or Cupertino popup. Large viewports use a constrained dialog and a two-column wallet grid. All interactive defaults have at least a 44 logical-pixel target.

Customize or bring your own widgets #

Use WalletUiTheme for copy and geometry, or replace individual pieces with builder, headerBuilder, tileBuilder, and emptyBuilder. For complete visual ownership, observe WalletController directly and build any widget tree you prefer. WalletPickerContent is also public for embedding the responsive discovery surface in an application-specific shell.

Key APIs #

  • AdaptiveWalletButton and showAdaptiveWalletPicker
  • MaterialWalletButton and showMaterialWalletPicker
  • CupertinoWalletButton and showCupertinoWalletPicker
  • WalletPickerContent and WalletAvatar
  • WalletUiTheme, WalletUiThemeData, and WalletUiPalette
  • WalletUiKeys for stable integration-test selectors
0
likes
160
points
265
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Responsive Material, Cupertino, and adaptive wallet UI for Solana Kit.

Homepage
Repository (GitHub)
View/report issues

Topics

#solana #wallet #flutter #web3

License

MIT (license)

Dependencies

cupertino_icons, flutter, flutter_svg, solana_kit_wallet_adapter, solana_kit_wallet_standard

More

Packages that depend on solana_kit_wallet_ui