Skip to content
Snippets Groups Projects
Commit bbec988c authored by poka's avatar poka
Browse files

fix: don't show loading icon each bloc on idtyStatus...

parent 6cb08585
No related branches found
No related tags found
No related merge requests found
Pipeline #35200 waiting for manual action
...@@ -29,9 +29,7 @@ class IdentityStatus extends StatelessWidget { ...@@ -29,9 +29,7 @@ class IdentityStatus extends StatelessWidget {
future: sub.idtyStatus([address]), future: sub.idtyStatus([address]),
initialData: [walletData.identityStatus], initialData: [walletData.identityStatus],
builder: (context, AsyncSnapshot<List<IdtyStatus>> snapshot) { builder: (context, AsyncSnapshot<List<IdtyStatus>> snapshot) {
if (snapshot.connectionState != ConnectionState.done) { if (snapshot.hasError || snapshot.data == null) {
return const Loading(size: 18);
} else if (snapshot.hasError || snapshot.data == null) {
log.e(snapshot.error); log.e(snapshot.error);
return const Icon(Icons.close, color: Colors.red); return const Icon(Icons.close, color: Colors.red);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment