mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-15 11:28:10 +02:00
Avoid overflow for long version strings on Apps page
This commit is contained in:
@@ -253,7 +253,9 @@ class AppsPageState extends State<AppsPage> {
|
|||||||
fontWeight: sortedApps[index].app.pinned
|
fontWeight: sortedApps[index].app.pinned
|
||||||
? FontWeight.bold
|
? FontWeight.bold
|
||||||
: FontWeight.normal)),
|
: FontWeight.normal)),
|
||||||
trailing: sortedApps[index].downloadProgress != null
|
trailing: SingleChildScrollView(
|
||||||
|
reverse: true,
|
||||||
|
child: sortedApps[index].downloadProgress != null
|
||||||
? Text(tr('percentProgress', args: [
|
? Text(tr('percentProgress', args: [
|
||||||
sortedApps[index]
|
sortedApps[index]
|
||||||
.downloadProgress
|
.downloadProgress
|
||||||
@@ -265,14 +267,13 @@ class AppsPageState extends State<AppsPage> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
SingleChildScrollView(
|
SizedBox(
|
||||||
child: SizedBox(
|
width: 100,
|
||||||
width: 80,
|
|
||||||
child: Text(
|
child: Text(
|
||||||
'${sortedApps[index].app.installedVersion ?? tr('notInstalled')}${sortedApps[index].app.trackOnly == true ? ' ${tr('estimateInBrackets')}' : ''}',
|
'${sortedApps[index].app.installedVersion ?? tr('notInstalled')}${sortedApps[index].app.trackOnly == true ? ' ${tr('estimateInBrackets')}' : ''}',
|
||||||
overflow: TextOverflow.fade,
|
overflow: TextOverflow.fade,
|
||||||
textAlign: TextAlign.end,
|
textAlign: TextAlign.end,
|
||||||
))),
|
)),
|
||||||
sortedApps[index].app.installedVersion != null &&
|
sortedApps[index].app.installedVersion != null &&
|
||||||
sortedApps[index].app.installedVersion !=
|
sortedApps[index].app.installedVersion !=
|
||||||
sortedApps[index].app.latestVersion
|
sortedApps[index].app.latestVersion
|
||||||
@@ -294,7 +295,7 @@ class AppsPageState extends State<AppsPage> {
|
|||||||
))
|
))
|
||||||
: const SizedBox(),
|
: const SizedBox(),
|
||||||
],
|
],
|
||||||
)),
|
))),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (selectedApps.isNotEmpty) {
|
if (selectedApps.isNotEmpty) {
|
||||||
toggleAppSelected(sortedApps[index].app);
|
toggleAppSelected(sortedApps[index].app);
|
||||||
|
Reference in New Issue
Block a user