From c376a7abeca9108e1ff80350a5b4ce634db7acf7 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sun, 19 Feb 2023 18:20:28 -0500 Subject: [PATCH] Longer version names bugfix for apps list UI --- lib/pages/apps.dart | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/pages/apps.dart b/lib/pages/apps.dart index 3ee67c6..e733439 100644 --- a/lib/pages/apps.dart +++ b/lib/pages/apps.dart @@ -266,6 +266,7 @@ class AppsPageState extends State { ) : null, title: Text( + maxLines: 1, listedApps[index].installedInfo?.name ?? listedApps[index].app.name, style: TextStyle( @@ -298,11 +299,14 @@ class AppsPageState extends State { Row( mainAxisSize: MainAxisSize.min, children: [ - Text( - '${listedApps[index].app.installedVersion ?? tr('notInstalled')}${listedApps[index].app.additionalSettings['trackOnly'] == true ? ' ${tr('estimateInBrackets')}' : ''}', - overflow: TextOverflow.ellipsis, - textAlign: TextAlign.end, - ) + Container( + constraints: const BoxConstraints( + maxWidth: 150), + child: Text( + '${listedApps[index].app.installedVersion ?? tr('notInstalled')}${listedApps[index].app.additionalSettings['trackOnly'] == true ? ' ${tr('estimateInBrackets')}' : ''}', + overflow: TextOverflow.ellipsis, + textAlign: TextAlign.end, + )) ]), GestureDetector( onTap: changesUrl == null