Skip to content

Commit

Permalink
fix another 2 more max >= min
Browse files Browse the repository at this point in the history
  • Loading branch information
AliRn76 authored Sep 1, 2020
1 parent 153f93a commit 2ab2cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/numberpicker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class NumberPicker extends StatelessWidget {
}) : assert(initialValue != null),
assert(minValue != null),
assert(maxValue != null),
assert(maxValue > minValue),
assert(maxValue >= minValue),
assert(initialValue >= minValue && initialValue <= maxValue),
assert(step > 0),
assert(scrollDirection != null),
Expand Down Expand Up @@ -120,7 +120,7 @@ class NumberPicker extends StatelessWidget {
assert(minValue != null),
assert(maxValue != null),
assert(decimalPlaces != null && decimalPlaces > 0),
assert(maxValue > minValue),
assert(maxValue >= minValue),
assert(initialValue >= minValue && initialValue <= maxValue),
selectedIntValue = initialValue.floor(),
selectedDecimalValue = ((initialValue - initialValue.floorToDouble()) *
Expand Down

0 comments on commit 2ab2cea

Please sign in to comment.