Feat: Zeigt einen Button zum Konto-Erstellen an, falls kein Konto existiert

This commit is contained in:
2026-01-03 21:54:27 +01:00
parent 7b3a1cfac6
commit 51d0572c11

View File

@@ -67,7 +67,17 @@ class _AccountSelectState extends State<AccountSelect> {
),
);
} else if (_selected == null && _accounts.isEmpty) {
return const Text('');
return TextButton(
onPressed: _accountController.newAccountHandler,
child: const Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.account_balance_wallet),
SizedBox(width: 10),
Text('Konto hinzufügen'),
],
),
);
} else {
return const CircularProgressIndicator();
}