widgets/widgets library
Classes
- AlbyGoConnectConfig
- Configuration for launching the Alby Go NWC connection intent.
- NBanner
- 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 Amber, 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.
- WalletIconConfig
- Configuration for wallet type icons
Enums
- 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}) → Future< CashuWallet?> - Shows a dialog to add a Cashu wallet.
-
showAddLnurlWalletDialog(
BuildContext context, NdkFlutter ndkFlutter, {bool returnToWalletType = false, AlbyGoConnectConfig albyGoConnectConfig = kDefaultAlbyGoConnectConfig}) → 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}) → Future< bool> - Shows a dialog to choose wallet type (Cashu, NWC, or LNURL).
-
showNwcConnectionOptionsDialog(
BuildContext context, NdkFlutter ndkFlutter, {AlbyGoConnectConfig albyGoConnectConfig = kDefaultAlbyGoConnectConfig}) → Future< bool> - Shows a dialog to choose NWC connection method.