UI tweaks

This commit is contained in:
Imran Remtulla
2023-05-06 13:28:41 -04:00
parent cc3c4cc79f
commit d5f7eced8b
2 changed files with 7 additions and 5 deletions

View File

@@ -515,10 +515,12 @@ class AppsPageState extends State<AppsPage> {
? FontWeight.bold ? FontWeight.bold
: FontWeight.normal)), : FontWeight.normal)),
trailing: listedApps[index].downloadProgress != null trailing: listedApps[index].downloadProgress != null
? Text(tr('percentProgress', args: [ ? SizedBox(
listedApps[index].downloadProgress?.toInt().toString() ?? width: 110,
'100' child: Text(tr('percentProgress', args: [
])) listedApps[index].downloadProgress?.toInt().toString() ??
'100'
])))
: trailingRow, : trailingRow,
onTap: () { onTap: () {
if (selectedAppIds.isNotEmpty) { if (selectedAppIds.isNotEmpty) {

View File

@@ -809,7 +809,7 @@ class AppsProvider with ChangeNotifier {
apps[i].installedVersion = null; apps[i].installedVersion = null;
} }
} }
await saveApps(apps, attemptToCorrectInstallStatus: !remove); await saveApps(apps, attemptToCorrectInstallStatus: false);
} }
if (remove) { if (remove) {
await removeApps(apps.map((e) => e.id).toList()); await removeApps(apps.map((e) => e.id).toList());