NWallets class

High-level wallets section widget that mirrors the sample app's wallets tab.

This keeps built-in English defaults for labels but allows host applications to pass in localized strings (e.g. from AppLocalizations).

Inheritance

Constructors

NWallets({Key? key, required NdkFlutter ndkFlutter, String? title, String? recentActivityTitle, bool showPendingTransactions = true, bool showRecentTransactions = true, bool showAddButtons = true, bool showWalletActions = true, VoidCallback? onAddCashu, VoidCallback? onAddNwc, VoidCallback? onAddLnurl, Widget? header, Widget? headerActions, EdgeInsetsGeometry padding = const EdgeInsets.all(16.0), double walletCardsHeight = 200, Axis walletCardsScrollDirection = Axis.horizontal, double recentTransactionsHeight = 200, ValueChanged<String>? onWalletSelected, AlbyGoConnectConfig albyGoConnectConfig = kDefaultAlbyGoConnectConfig, NwcWalletAuthCoordinator? nwcWalletAuthCoordinator, NwcUriScanner? nwcUriScanner, Bolt12InputScanner? bolt12InputScanner, WalletInputScanner? walletInputScanner, List<NwcConnectionOption>? nwcConnectionOptions, WalletQrScannerBuilder? walletQrScannerBuilder, WalletIconConfig? cashuIcon, WalletIconConfig? nwcIcon, WalletIconConfig? lnurlIcon, WalletIconConfig? bolt12Icon, AddWalletCardBuilder? addWalletCardBuilder})
const

Properties

addWalletCardBuilder → AddWalletCardBuilder?
Optional builder replacing the default add-wallet template card.
final
albyGoConnectConfig → AlbyGoConnectConfig
Parameters for launching Alby Go NWC connection.
final
bolt12Icon → WalletIconConfig?
Custom icon configuration for BOLT12 wallets
final
bolt12InputScanner → Bolt12InputScanner?
Optional host-provided scanner for BOLT12/BIP321/BIP353 QR codes.
final
cashuIcon → WalletIconConfig?
Custom icon configuration for Cashu wallets
final
hashCode → int
The hash code for this object.
no setterinherited
Optional widget to replace the entire header row (title + actions).
final
headerActions → Widget?
Optional widget to replace just the add-buttons row.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lnurlIcon → WalletIconConfig?
Custom icon configuration for LNURL wallets
final
ndkFlutter → NdkFlutter
final
nwcConnectionOptions → List<NwcConnectionOption>?
Wallet apps or web services offering assisted NWC authorization. Null enables Alby Cloud and Coinos presets; an empty list disables them.
final
nwcIcon → WalletIconConfig?
Custom icon configuration for NWC wallets
final
nwcUriScanner → Bolt12InputScanner?
Optional host-provided scanner for NWC QR codes.
final
nwcWalletAuthCoordinator → NwcWalletAuthCoordinator?
Optional coordinator for handling the Alby Go NWC connection flow.
final
onAddCashu → VoidCallback?
Optional callback when add-Cashu button is pressed.
final
onAddLnurl → VoidCallback?
Optional callback when add-LNURL button is pressed.
final
onAddNwc → VoidCallback?
Optional callback when add-NWC button is pressed.
final
onWalletSelected → ValueChanged<String>?
Optional callback when a wallet is selected.
final
padding → EdgeInsetsGeometry
Padding around the entire section.
final
recentActivityTitle → String?
Title above the recent transactions list.
final
recentTransactionsHeight → double
Height of the recent transactions list.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showAddButtons → bool
Whether to show the add-wallet buttons in the header.
final
showPendingTransactions → bool
Whether to show the pending transactions section.
final
showRecentTransactions → bool
Whether to show the recent transactions section.
final
showWalletActions → bool
Whether to show the wallet operations card for the selected wallet.
final
title → String?
Section title above the wallet cards.
final
walletCardsHeight → double
Height of the wallet cards list.
final
walletCardsScrollDirection → Axis
Scroll direction for the wallet cards list.
final
walletInputScanner → WalletInputScanner?
Optional host-provided scanner accepting every supported wallet input.
final
walletQrScannerBuilder → WalletQrScannerBuilder?
Camera preview/decoder for the shared wallet input UI. Optional: paste and wallet selection work without any camera dependency.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<NWallets>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited