diff --git a/filcnaplo/lib/ui/widgets/grade/grade_tile.dart b/filcnaplo/lib/ui/widgets/grade/grade_tile.dart index 1873b49..75dd971 100644 --- a/filcnaplo/lib/ui/widgets/grade/grade_tile.dart +++ b/filcnaplo/lib/ui/widgets/grade/grade_tile.dart @@ -229,10 +229,14 @@ Color gradeColor({required BuildContext context, required num value, bool nocolo var settings = Provider.of(context, listen: false); try { - if (value >= value.floor() + settings.rounding / 10) { - valueInt = value.ceil(); + if (value < 2.0) { + valueInt = 1; } else { - valueInt = value.floor(); + if (value >= value.floor() + settings.rounding / 10) { + valueInt = value.ceil(); + } else { + valueInt = value.floor(); + } } } catch (_) {}