widgets/widgets library
Classes
- AlbyGoConnectConfig
- Configuration for launching the Alby Go NWC connection intent.
- NBanner
- NCashuSeedBackupWarning
- Standalone warning banner shown when at least one cashu wallet exists and the user has not yet confirmed they backed up the cashu recovery (seed) phrase. The seed is global (not per wallet), so place this once in the wallets screen rather than inside each wallet card.
- NLocaleSwitcher
- Widget that allows switching between available locales.
- NLocaleSwitcherDropdown
- Alternative dropdown version of the locale switcher
- NLogin
- NName
- NPendingRequests
- A widget that displays pending signer requests (for signer app, bunker, extension).
- NPendingTransactions
- Horizontal list of pending wallet transactions for a specific wallet when provided.
- NPicture
- NRecentTransactions
- Vertical list of recent transactions for a specific wallet when provided.
- NSwitchAccount
- NUserProfile
- NWalletActions
- Card with Send/Receive actions and dialogs for a selected wallet.
- NWalletCard
- Individual wallet card widget used by the wallets UI.
- NWalletCardList
-
Reorderable list of wallet cards backed by
ndk.wallets.walletsStream. - NWallets
- High-level wallets section widget that mirrors the sample app's wallets tab.
- NWalletsState
- NwcWalletAuthCoordinator
- WalletIconConfig
- Configuration for wallet type icons
Enums
- AlbyGoConnectMethod
- NPendingRequestsState
- State of the pending requests widget
Constants
- kDefaultAlbyGoConnectConfig → const AlbyGoConnectConfig
- Default Alby Go parameters aligned with the sample app's NWC auth flow.
Functions
-
showAddCashuWalletDialog(
BuildContext context, NdkFlutter ndkFlutter, {String defaultMintUrl = _defaultMintUrl, bool returnToWalletType = false, AlbyGoConnectConfig albyGoConnectConfig = kDefaultAlbyGoConnectConfig, NwcWalletAuthCoordinator? nwcWalletAuthCoordinator}) → Future< CashuWallet?> - Shows a dialog to add a Cashu wallet.
-
showAddLnurlWalletDialog(
BuildContext context, NdkFlutter ndkFlutter, {bool returnToWalletType = false, AlbyGoConnectConfig albyGoConnectConfig = kDefaultAlbyGoConnectConfig, NwcWalletAuthCoordinator? nwcWalletAuthCoordinator}) → Future< Wallet?> - Shows a dialog to add an LNURL wallet.
-
showAddNwcWalletDialog(
BuildContext context, NdkFlutter ndkFlutter, {int defaultBalance = 10000}) → Future< NwcWallet?> - Shows a dialog to add an NWC wallet.
-
showAddWalletTypeDialog(
BuildContext context, NdkFlutter ndkFlutter, {AlbyGoConnectConfig albyGoConnectConfig = kDefaultAlbyGoConnectConfig, NwcWalletAuthCoordinator? nwcWalletAuthCoordinator}) → Future< bool> - Shows a dialog to choose wallet type (Cashu, NWC, or LNURL).
-
showNwcConnectionOptionsDialog(
BuildContext context, NdkFlutter ndkFlutter, {AlbyGoConnectConfig albyGoConnectConfig = kDefaultAlbyGoConnectConfig, NwcWalletAuthCoordinator? nwcWalletAuthCoordinator}) → Future< bool> - Shows a dialog to choose NWC connection method.