zec_wallet_ui 0.0.1 copy "zec_wallet_ui: ^0.0.1" to clipboard
zec_wallet_ui: ^0.0.1 copied to clipboard

A drop-in shielded Zcash wallet for Flutter apps, built on zec_wallet: onboarding, backup, send, receive, history and swaps, themed by your app, in 16 languages.

example/example.md

zec_wallet_ui example #

The full reference app is zec_wallet/example: its lib/main.dart is the whole "page of glue". The minimum a host wires:

import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:go_router/go_router.dart';
import 'package:zec_wallet/zec_wallet.dart' show RustLib;
import 'package:zec_wallet_ui/zec_wallet_ui.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await RustLib.init(); // see zec_wallet's README for the iOS/macOS loader

  final dbDir = await resolveWalletDbDir();
  final router = GoRouter(
    initialLocation: WalletRoutes.wallet,
    routes: walletRoutes(),
  );

  runApp(
    ProviderScope(
      overrides: walletOnboardingOverrides(
        config: buildWalletConfig(dbDir: dbDir),
      ),
      child: MaterialApp.router(
        theme: buildTheme(WalletColors.light),
        localizationsDelegates: const [
          walletLocalizationsFallbackDelegate,
          // ...your own delegates
        ],
        routerConfig: router,
      ),
    ),
  );
}

On Android and iOS, also add zec_wallet_ui_platform for screen protection and backup exclusion (see this package's README).

0
likes
140
points
125
downloads

Documentation

API reference

Publisher

verified publisherrelim.io

Weekly Downloads

A drop-in shielded Zcash wallet for Flutter apps, built on zec_wallet: onboarding, backup, send, receive, history and swaps, themed by your app, in 16 languages.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_localizations, flutter_riverpod, flutter_zxing, go_router, intl, meta, path_provider, qr_flutter, shared_preferences, zec_wallet

More

Packages that depend on zec_wallet_ui