mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-27 08:29:29 +02:00
Improve version text alignment on app page (#607)
This commit is contained in:
@@ -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,
|
||||||
),
|
),
|
||||||
Text(
|
Column(
|
||||||
tr('latestVersionX',
|
children: [
|
||||||
args: [app?.app.latestVersion ?? tr('unknown')]),
|
Text(
|
||||||
textAlign: TextAlign.center,
|
'${tr('latestVersionX', args: [
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
app?.app.latestVersion ?? tr('unknown')
|
||||||
),
|
])}\n${tr('installedVersionX', args: [
|
||||||
Text(
|
app?.app.installedVersion ?? tr('none')
|
||||||
'${tr('installedVersionX', args: [
|
])}${trackOnly ? ' ${tr('estimateInBrackets')}\n\n${tr('xIsTrackOnly', args: [
|
||||||
app?.app.installedVersion ?? tr('none')
|
tr('app')
|
||||||
])}${trackOnly ? ' ${tr('estimateInBrackets')}\n\n${tr('xIsTrackOnly', args: [
|
])}' : ''}',
|
||||||
tr('app')
|
textAlign: TextAlign.end,
|
||||||
])}' : ''}',
|
style: Theme.of(context).textTheme.bodyLarge!,
|
||||||
textAlign: TextAlign.center,
|
),
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
],
|
||||||
),
|
),
|
||||||
if (app?.app.installedVersion != null &&
|
if (app?.app.installedVersion != null &&
|
||||||
!isVersionDetectionStandard)
|
!isVersionDetectionStandard)
|
||||||
|
Reference in New Issue
Block a user