How to make CircularProgressIndicator
in Jetpack Compose smaller or bigger than default size?
CircularProgressIndicator(
modifier = Modifier
.size(32.dp),
)
CodePudding user response:
You can simply use:
CircularProgressIndicator(
modifier = Modifier.then(Modifier.size(32.dp))
)
CodePudding user response:
You can't make the CircularProgressIndicator smaller or bigger in compose using Modifier.size(32.dp) or Modifier.height(32.dp).width(32.dp)
use Modifier.progressSemantics().size(yourDesireSize.dp)
example
CircularProgressIndicator(
modifier = Modifier
.progressSemantics()
.size(32.dp),
)