fix: don't show loading icon each bloc on idtyStatus...
This commit is contained in:
parent
6cb085851f
commit
bbec988c5c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue