You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize OtherComponent and ProgressIndicator (#79)
* example: Optimize OtherComponent performance
* library: Optimize ProgressIndicator Components
This commit refactors the animation of the indeterminate `CircularProgressIndicator` components.
- For linear indeterminate progress indicators, the calculation of `progressWidth` is simplified.
- For circular indeterminate progress indicators, `rememberInfiniteTransition` and `animateFloat` are now used for smoother and more efficient animations of `rotationAnim` and `sweepAnim`. The `keyframes` animation spec is used for `sweepAnim` to create a more distinct visual effect.
- The drawing of end caps for both types of circular progress indicators is simplified by using `StrokeCap.Round`.
0 commit comments