Set up default currency accounts automatically (#72)

This commit is contained in:
Stephan D committed 2026-10-23 12:43:55 +02:00
1 parent 62df9eac5f
commit 5c255296d3
21 files changed
+675 -62

No files matched your search

+16 -4
View File
@@ -256,11 +256,23 @@ class TransferPageState extends State<TransferPage> {
),
] else ...[
if (accounts.isEmpty) ...[
Text(wallet.loading ? l.wWorking : l.wEmptyAccounts),
TextButton(
onPressed: wallet.loading ? null : wallet.refresh,
child: Text(l.wRefresh),
Semantics(
liveRegion: true,
child: Text(
wallet.loading ||
(!wallet.failed && wallet.data == null)
? l.wAccountsLoading
: wallet.failed
? l.wAccountsFailed
: l.wEmptyAccounts,
),
),
if (!wallet.loading &&
(wallet.failed || wallet.data != null))
TextButton(
onPressed: wallet.refresh,
child: Text(l.wAccountsRetry),
),
] else ...[
DropdownButtonFormField<String>(
key: ValueKey('source-${p.source}'),