salvadordeveloper/flutter-crypto-app

SearchScreen doesn't show CircularProgressIndicator first

tenSunFree opened this issue · 2 comments

When SearchScreen requests network data, it first displays No results.
Screenshot_20220626-212147

Because the list is initialized by default, if the network data is not loaded, the returned list will cause data.length to be 0, and then display No results.
So consider trying not to initialize the list and let it return null.
2022-06-26_215549

Then consider displaying CircularProgressIndicator when data == null.
And when data.length == 0, displays No results.
2022-06-26_215740

Can I pick this issues

OK, please pick.