Skip to content

Commit

Permalink
Fix progress indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
guyluz11 committed Apr 27, 2024
1 parent 654f97f commit a570cde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/presentation/atoms/progress_indicator_atom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class _ProgressIndicatorAtomState extends State<ProgressIndicatorAtom>
vsync: this,
duration: widget.totalDuration,
);
controller.addListener(() {
setState(() {});
});
controller.addStatusListener((status) {
if (status == AnimationStatus.completed) {
widget.callback();
Expand Down

0 comments on commit a570cde

Please sign in to comment.