forked from firka/student-legacy
rounding fix #148
This commit is contained in:
parent
1379a059a9
commit
1282a0c87e
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user