Feat: Zeigt einen Button zum Konto-Erstellen an, falls kein Konto existiert
This commit is contained in:
@@ -67,7 +67,17 @@ class _AccountSelectState extends State<AccountSelect> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else if (_selected == null && _accounts.isEmpty) {
|
} 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 {
|
} else {
|
||||||
return const CircularProgressIndicator();
|
return const CircularProgressIndicator();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user