fixed height glitch on grades page

This commit is contained in:
Kima 2023-10-15 17:20:08 +02:00
parent 21a5771211
commit d27c059b23
2 changed files with 4 additions and 4 deletions

View File

@ -86,7 +86,7 @@ class StatisticsTile extends StatelessWidget {
color: color:
(color ?? gradeColor(context: context, value: value)) (color ?? gradeColor(context: context, value: value))
.withOpacity(outline ? 1.0 : 0.0), .withOpacity(outline ? 1.0 : 0.0),
width: fill ? 2.0 : 5.0, width: fill ? 5.0 : 5.0,
) )
: null, : null,
borderRadius: BorderRadius.circular(45.0), borderRadius: BorderRadius.circular(45.0),
@ -108,7 +108,7 @@ class StatisticsTile extends StatelessWidget {
style: TextStyle( style: TextStyle(
color: color ?? gradeColor(context: context, value: value), color: color ?? gradeColor(context: context, value: value),
fontWeight: FontWeight.w800, fontWeight: FontWeight.w800,
fontSize: 32.0, fontSize: 28.0,
), ),
), ),
), ),

View File

@ -155,7 +155,7 @@ class _GradesPageState extends State<GradesPage> {
title: AutoSizeText( title: AutoSizeText(
"subjectavg".i18n, "subjectavg".i18n,
textAlign: TextAlign.center, textAlign: TextAlign.center,
maxLines: 2, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
value: subjectAvg, value: subjectAvg,
@ -168,7 +168,7 @@ class _GradesPageState extends State<GradesPage> {
title: AutoSizeText( title: AutoSizeText(
"classavg".i18n, "classavg".i18n,
textAlign: TextAlign.center, textAlign: TextAlign.center,
maxLines: 2, maxLines: 1,
wrapWords: false, wrapWords: false,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),