Flutter Progress Indicator Size

aj580 picture aj580 · Sep 26, 2018 · Viewed 23.1k times · Source

I was wondering if there was a way to change the width/length/height of both the linear and circular progress bar. I'm trying to make a XP bar using it, but I'm not sure if that's possible. Also, I am aware the values are only through 0.0 and 1.0, but I also think it's possible(not sure) that I would be able to make a formula to where it will still work.

Answer

F-1 picture F-1 · Sep 26, 2018

Progress indicator will fill its parent layout widget e.g

SizedBox(
    height: 300.0,
    width: 300.0,
    child: 
        CircularProgressIndicator(
        valueColor: AlwaysStoppedAnimation(Colors.blue),
        strokeWidth: 5.0)
    )