Skip to content

Commit

Permalink
Merge pull request #69 from a-givertzman/a-givertzman-patch-1
Browse files Browse the repository at this point in the history
Update small_linear_value_indicator.dart
  • Loading branch information
a-givertzman authored Jun 20, 2023
2 parents a481557 + 2265816 commit 8f5925e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ class SmallLinearValueIndicator extends StatelessWidget {
bool _isAlarm(double currentValue) {
final low = _low;
final high = _high;
final isAlarmLow = low != null && currentValue - low < 0;
final isAlarmHigh = high != null && currentValue - high > 0;
final isAlarmLow = low != null && currentValue <= low;
final isAlarmHigh = high != null && currentValue >= high;
return isAlarmLow || isAlarmHigh;
}
}

0 comments on commit 8f5925e

Please sign in to comment.