SearchScreen doesn't show CircularProgressIndicator first
tenSunFree opened this issue · 2 comments
tenSunFree commented
When SearchScreen requests network data, it first displays No results.
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.
Then consider displaying CircularProgressIndicator when data == null.
And when data.length == 0, displays No results.
Wave780 commented
Can I pick this issues
tenSunFree commented
OK, please pick.