looking for some solutions? You are welcome.

SOLVED: Implementing a determinate CircularProgressIndicator in Flutter?

Alec Sibilia:

I understand how to implement an indeterminate progress indicator, but how would you implement a determinate indicator tied to an animation over a specific duration?

Example code:

double _barValue = 1.0;

_animation = Tween(
    begin: 1.0,
    end: 0.0,
).animate(animationController)
    ..addListener(() {
        setState(() {
            _barValue = _animation.value;
        });
    });

CircularProgressIndicator(
    value: _barValue,
    // colorValue: <-- how do you implement this??
    backgroundColor: tangerine.withAlpha(100),
),



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent