Linear Progress Indicator
Linear progress indicators are used to indicate that an operation is loading or in progress.
- The
colorparameter controls the runner's color whiletrackColorcontrols the lane's color. strokeCapcontrols the shape of the end cap for the indicator. They may be rounded or rectangular. This is also known as "line cap" in the HTML world.- 🐛:
StrokeCap.Buttwill render outside its bounds whengapSize > 0. Use it only when it takes up the entire width of the screen or whengapSizeis 0; otherwise useStrokeCap.Squareinstead.
Circular Progress Indicator
Circular variant of the Linear Progress Indicator.
strokeWidthfills inside, controlling the size of the donut hole.- If
strokeWidthexceeds the radius of the circle, you'll get a cool pie animation.