Improve version text alignment on app page (#607)

This commit is contained in:
Imran Remtulla
2023-06-23 12:02:18 -04:00
parent 423ba07fad
commit d31bbd9ea8

View File

@@ -1,3 +1,5 @@
import 'dart:ui';
import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
@@ -82,20 +84,20 @@ class _AppPageState extends State<AppPage> {
const SizedBox( const SizedBox(
height: 32, height: 32,
), ),
Column(
children: [
Text( Text(
tr('latestVersionX', '${tr('latestVersionX', args: [
args: [app?.app.latestVersion ?? tr('unknown')]), app?.app.latestVersion ?? tr('unknown')
textAlign: TextAlign.center, ])}\n${tr('installedVersionX', args: [
style: Theme.of(context).textTheme.bodyLarge,
),
Text(
'${tr('installedVersionX', args: [
app?.app.installedVersion ?? tr('none') app?.app.installedVersion ?? tr('none')
])}${trackOnly ? ' ${tr('estimateInBrackets')}\n\n${tr('xIsTrackOnly', args: [ ])}${trackOnly ? ' ${tr('estimateInBrackets')}\n\n${tr('xIsTrackOnly', args: [
tr('app') tr('app')
])}' : ''}', ])}' : ''}',
textAlign: TextAlign.center, textAlign: TextAlign.end,
style: Theme.of(context).textTheme.bodyLarge, style: Theme.of(context).textTheme.bodyLarge!,
),
],
), ),
if (app?.app.installedVersion != null && if (app?.app.installedVersion != null &&
!isVersionDetectionStandard) !isVersionDetectionStandard)