From 97d1f005b40276ec28d42aab0c5aa59643fad8a2 Mon Sep 17 00:00:00 2001 From: balint1414 Date: Tue, 7 Oct 2025 22:06:37 +0200 Subject: [PATCH] =?UTF-8?q?Amennyiben=20nem=20=C3=ADrt=20dolgozatot/sz?= =?UTF-8?q?=C3=B6veges=20=C3=A9rt=C3=A9kel=C3=A9s=20stb,=20nem=200-val=20j?= =?UTF-8?q?elzi,=20hanem=20sz=C3=B6veges=20=C3=A9rt=C3=A9kel=C3=A9st=20mut?= =?UTF-8?q?atja.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- firka/lib/helpers/ui/grade.dart | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/firka/lib/helpers/ui/grade.dart b/firka/lib/helpers/ui/grade.dart index 231dac8a..de53d068 100644 --- a/firka/lib/helpers/ui/grade.dart +++ b/firka/lib/helpers/ui/grade.dart @@ -54,17 +54,28 @@ class GradeWidget extends StatelessWidget { if (grade.numericValue != null) { gradeColor = getGradeColor(grade.numericValue!.toDouble()); } - - return Card( - shape: CircleBorder(eccentricity: eccentricity), - shadowColor: Colors.transparent, - color: gradeColor.withAlpha(38), - child: Padding( - padding: EdgeInsets.only(left: 8, right: 8), - child: Text(gradeStr, - style: appStyle.fonts.H_H1 - .copyWith(fontSize: 24, color: gradeColor))), - ); + if (gradeStr == "0"){ + return Card( + shadowColor: Colors.transparent, + color: gradeColor.withAlpha(38), + child: Padding( + padding: EdgeInsets.only(left: 8, right: 8, top:2, bottom:2), + child: Text(grade.strValue, + style: appStyle.fonts.H_H1 + .copyWith(fontSize: 16, color: gradeColor))), + ); + }else { + return Card( + shape: CircleBorder(eccentricity: eccentricity), + shadowColor: Colors.transparent, + color: gradeColor.withAlpha(38), + child: Padding( + padding: EdgeInsets.only(left: 8, right: 8), + child: Text(gradeStr, + style: appStyle.fonts.H_H1 + .copyWith(fontSize: 24, color: gradeColor))), + ); + } } } }