From 6654406c81b21cc6a01f86a061ec8f5bcecc6d57 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 11 Oct 2025 18:33:30 -0400 Subject: [PATCH] Fix text alignment in app selection menu (#2577) --- lib/pages/apps.dart | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/lib/pages/apps.dart b/lib/pages/apps.dart index 71e9a73..64196cb 100644 --- a/lib/pages/apps.dart +++ b/lib/pages/apps.dart @@ -1010,6 +1010,7 @@ class AppsPageState extends State { selectedApps.where((element) => element.pinned).isEmpty ? tr('pinToTop') : tr('unpinFromTop'), + textAlign: TextAlign.center, ), ), const Divider(), @@ -1026,7 +1027,10 @@ class AppsPageState extends State { ); Navigator.of(context).pop(); }, - child: Text(tr('shareSelectedAppURLs')), + child: Text( + tr('shareSelectedAppURLs'), + textAlign: TextAlign.center, + ), ), const Divider(), TextButton( @@ -1043,7 +1047,10 @@ class AppsPageState extends State { subject: 'Obtainium - ${tr('appsString')}', ); }, - child: Text(tr('shareAppConfigLinks')), + child: Text( + tr('shareAppConfigLinks'), + textAlign: TextAlign.center, + ), ), const Divider(), TextButton( @@ -1069,7 +1076,10 @@ class AppsPageState extends State { fileNameOverrides: ['$fn.json'], ); }, - child: Text('${tr('share')} - ${tr('obtainiumExport')}'), + child: Text( + '${tr('share')} - ${tr('obtainiumExport')}', + textAlign: TextAlign.center, + ), ), const Divider(), TextButton( @@ -1093,6 +1103,7 @@ class AppsPageState extends State { 'downloadX', args: [lowerCaseIfEnglish(tr('releaseAsset'))], ), + textAlign: TextAlign.center, ), ), const Divider(), @@ -1100,7 +1111,10 @@ class AppsPageState extends State { onPressed: appsProvider.areDownloadsRunning() ? null : showMassMarkDialog, - child: Text(tr('markSelectedAppsUpdated')), + child: Text( + tr('markSelectedAppsUpdated'), + textAlign: TextAlign.center, + ), ), ], ),