Skip to content

Commit

Permalink
Make paddings equal
Browse files Browse the repository at this point in the history
  • Loading branch information
ZTL-UwU committed Jan 12, 2024
1 parent 61a6e25 commit af56a2d
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions lib/src/view/analysis/analysis_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -897,13 +897,6 @@ class ServerAnalysisSummary extends ConsumerWidget {
'Blunders',
serverAnalysis.black.inaccuracies.toString()
),
if (serverAnalysis.white.acpl != null &&
serverAnalysis.black.acpl != null)
(
serverAnalysis.white.acpl.toString(),
context.l10n.averageCentipawnLoss,
serverAnalysis.black.acpl.toString(),
),
])
TableRow(
children: [
Expand All @@ -918,6 +911,25 @@ class ServerAnalysisSummary extends ConsumerWidget {
_SummaryNumber(item.$3),
],
),
if (serverAnalysis.white.acpl != null &&
serverAnalysis.black.acpl != null)
TableRow(
children: [
_SummaryNumber(
serverAnalysis.white.acpl.toString(),
),
Center(
heightFactor: 1.5,
child: Text(
context.l10n.averageCentipawnLoss,
softWrap: true,
),
),
_SummaryNumber(
serverAnalysis.black.acpl.toString(),
),
],
),
],
),
),
Expand Down

0 comments on commit af56a2d

Please sign in to comment.