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]),
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue