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