changeProgressValue method
void
changeProgressValue(
- double value
)
Implementation
void changeProgressValue(double value) {
setState(() => {
widget.icon = Container(
width: 20,
height: 20,
padding: const EdgeInsets.all(1),
child: TweenAnimationBuilder<double>(
tween: Tween<double>(begin: 0.0, end: value),
duration: const Duration(milliseconds: 250),
builder: (context, value, _) => CircularProgressIndicator(
strokeWidth: 2.5,
valueColor: const AlwaysStoppedAnimation<Color>(
Color.fromRGBO(255, 255, 255, 1),
),
backgroundColor: const Color.fromRGBO(255, 255, 255, 0.24),
value: value,
),
),
),
});
}