I am trying to add a centered loading indicator inside of LazyColumn like shown in the text snippets however, my loading view is never centered. I am guessing it has to do something with how the children of the lazy column are measured. Is there a way to have the loading view take up the rest of the screen so that I can center the circular progress indicator?
You could just move the loader outside of the LazyCol and just into a Box where it's centered.
a
Abhishek Dewan
07/13/2021, 6:09 AM
Yea I am currently refactoring to do that exactly. But I wanted to post if someone can help me understand why this happens just for learning how LazyColumn works.
I would have assumed that the item would derive it's height based on what's provided inside of it but I am not really sure how lazy column measures it's children 🙂