rounding fix #148

This commit is contained in:
55nknown 2022-12-25 14:58:15 +01:00
parent 1379a059a9
commit 1282a0c87e

View File

@ -229,7 +229,7 @@ Color gradeColor({required BuildContext context, required num value, bool nocolo
var settings = Provider.of<SettingsProvider>(context, listen: false);
try {
if (value > value.floor() + settings.rounding / 10) {
if (value >= value.floor() + settings.rounding / 10) {
valueInt = value.ceil();
} else {
valueInt = value.floor();