fail under 2
This commit is contained in:
parent
1282a0c87e
commit
def7113fcf
@ -229,10 +229,14 @@ 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 < 2.0) {
|
||||||
valueInt = value.ceil();
|
valueInt = 1;
|
||||||
} else {
|
} else {
|
||||||
valueInt = value.floor();
|
if (value >= value.floor() + settings.rounding / 10) {
|
||||||
|
valueInt = value.ceil();
|
||||||
|
} else {
|
||||||
|
valueInt = value.floor();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user