rounding fix #148
This commit is contained in:
@@ -229,7 +229,7 @@ Color gradeColor({required BuildContext context, required num value, bool nocolo
|
|||||||
var settings = Provider.of<SettingsProvider>(context, listen: false);
|
var settings = Provider.of<SettingsProvider>(context, listen: false);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (value > value.floor() + settings.rounding / 10) {
|
if (value >= value.floor() + settings.rounding / 10) {
|
||||||
valueInt = value.ceil();
|
valueInt = value.ceil();
|
||||||
} else {
|
} else {
|
||||||
valueInt = value.floor();
|
valueInt = value.floor();
|
||||||
|
|||||||
Reference in New Issue
Block a user