mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 05:23:28 +01: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, | ||||||
|             ), |             ), | ||||||
|  |             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) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user