progress_animation_builder 1.0.0+2 progress_animation_builder: ^1.0.0+2 copied to clipboard
ProgressAnimationBuilder passes Animation<double> according to value(0.0-1.0).
progress_animation_builder #
ProgressAnimationBuilder passes Animation
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,
);
},
);