Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shirne committed Sep 22, 2023
1 parent aad3e85 commit 4fa67b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/src/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ class ProgressController extends OverlayController<double> {
super.remove();
}

bool completed = false;

void complete() {
if (completed) return;
completed = true;
value = 1;
}

Expand Down Expand Up @@ -174,7 +178,7 @@ class ProgressController extends OverlayController<double> {
double get value => min(1, aController?.value ?? _value);

@override
bool get isClose => value >= 1;
bool get isClose => completed || value >= 1;
}

class EntryController extends OverlayController<bool> {
Expand Down

0 comments on commit 4fa67b8

Please sign in to comment.