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,
    ..addListener(() {
        setState(() {
            _barValue = _animation.value;

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

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

No comments: