I am trying to show an CircularProgressIndicator in my login screen. When I enter username and password and click the login button I need to show a CircularProgressIndicator
at the center of screen with the login screen still visible. I am able to show CircularProgressIndicator
but it's covering the entire screen with white background. I want it to have a transparent background.
CircularProgressIndicator(
modifier = Modifier
.fillMaxSize()
.wrapContentSize(Alignment.Center)
)
CircularProgressindicator
has a white background, but instead, yourCircularProgressindicator
is pushing the contents of your login page off the screen. See my answer below. If you found it useful, please mark it as accepted answer by clicking the checkmark at the left side of my answer.