Skip to content

Commit

Permalink
fix: progressbar value was wrong during first countdown
Browse files Browse the repository at this point in the history
  • Loading branch information
blockbasti committed Feb 9, 2021
1 parent aee12f4 commit a2688b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/WorkoutRunner.dart
Expand Up @@ -338,7 +338,10 @@ class _WorkoutPageState extends State<WorkoutPage> {
fontSize: 48, fontWeight: FontWeight.bold),
),
LinearProgressIndicator(
value: _remainingSeconds / _currentExercise.duration,
value: _remainingSeconds /
(_currentSecond < 10
? 10
: _currentExercise.duration),
minHeight: 6,
valueColor: AlwaysStoppedAnimation<Color>(
Theme.of(context).accentColor),
Expand Down

0 comments on commit a2688b1

Please sign in to comment.