Skip to content

Commit

Permalink
fix: avoid negative time on exercise (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobstenfeldt authored Feb 2, 2022
1 parent ca4f942 commit 0cefe4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/number_stepper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class _CustomStepperState extends State<NumberStepper> {
),
onPressed: () {
setState(() {
widget.value = widget.value == widget.lowerLimit
widget.value = widget.value -5 < widget.lowerLimit
? widget.lowerLimit
: widget.value -= 5;
});
Expand Down

0 comments on commit 0cefe4f

Please sign in to comment.