Home > database >  How to make Circular Progress Indicator smaller or bigger in jetpack compose
How to make Circular Progress Indicator smaller or bigger in jetpack compose

Time:10-28

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))
)

enter image description here

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),
)
  • Related