Fixed mobile layout

This commit is contained in:
2024-02-18 14:42:50 +01:00
parent b2175ddafd
commit 2006ebf5cb
10 changed files with 220 additions and 94 deletions

View File

@@ -202,7 +202,11 @@ class AccountBloc extends Bloc<AccountEvent, AccountState> {
accountFound.color = accountToSave.color;
accountFound.saving = accountToSave.saving;
} catch (e) {
accounts.add(accountToSave);
if (accounts.isEmpty) {
accounts = [accountToSave];
} else {
accounts.add(accountToSave);
}
}
await _metadataRepository.saveAccounts(accounts);