Fix: Zeigt anstatt des Ladecircles nichts für den AccountSelect an, falls noch kein Konto erstellt ist

This commit is contained in:
2025-12-28 02:33:17 +01:00
parent 824855b9b6
commit 2c30768746

View File

@@ -44,7 +44,7 @@ class _AccountSelectState extends State<AccountSelect> {
@override
Widget build(final BuildContext context) {
if (_selected != null && _accounts != []) {
if (_selected != null && _accounts.isNotEmpty) {
return DropdownSearch<Account>(
items: (final f, final cs) => _accounts,
selectedItem: _selected,
@@ -66,6 +66,8 @@ class _AccountSelectState extends State<AccountSelect> {
),
),
);
} else if (_selected == null && _accounts.isEmpty) {
return const Text('');
} else {
return const CircularProgressIndicator();
}