progress_animation_builder

gif

ProgressAnimationBuilder passes Animation according to value(0.0-1.0).

Usage

ProgressAnimationBuilder(
  value: _isInitial ? 0 : 1,
  duration: Duration(milliseconds: 1000),
  curve: Curves.slowMiddle,
  builder: (context, animation) {
    return AnimatedIcon(
      size: MediaQuery.of(context).size.width * 3 / 4,
      icon: AnimatedIcons.play_pause,
      progress: animation,
    );
  },
);

Example

Libraries

progress_animation_builder