diegoveloper / flutter_percent_indicator

Flutter percent indicator library
BSD 2-Clause "Simplified" License
691 stars 206 forks source link

Animate decrease in progress for circular indicator #18

Closed joelbrostrom closed 5 years ago

joelbrostrom commented 5 years ago

Applied the same fix applied to the linear percent indicator to the circular counterpart, as requested by @diegoveloper.

Fixed an error causing regression (declining progression) to animate from 0 instead of the last value. This happened regardless if the animateFromLastPercent was set too true or not.

The error was an unnecessary logical operation checking if the new value was larger than the old. Removing this statement fixed the bug and does not effect any other code.