UI bugfix (#723)

This commit is contained in:
Imran Remtulla
2023-07-29 22:29:08 -04:00
parent 3dafd643c0
commit cccde7e135

View File

@@ -543,20 +543,19 @@ class AppsPageState extends State<AppsPage> {
: FontWeight.normal)), : FontWeight.normal)),
trailing: listedApps[index].downloadProgress != null trailing: listedApps[index].downloadProgress != null
? SizedBox( ? SizedBox(
width: 90,
child: Text( child: Text(
listedApps[index].downloadProgress! >= 0 listedApps[index].downloadProgress! >= 0
? tr('percentProgress', args: [ ? tr('percentProgress', args: [
listedApps[index] listedApps[index]
.downloadProgress! .downloadProgress!
.toInt() .toInt()
.toString() .toString()
]) ])
: tr('pleaseWait'), : tr('pleaseWait'),
textAlign: (listedApps[index].downloadProgress! >= 0) textAlign: (listedApps[index].downloadProgress! >= 0)
? TextAlign.start ? TextAlign.start
: TextAlign.end, : TextAlign.end,
)) ))
: trailingRow, : trailingRow,
onTap: () { onTap: () {
if (selectedAppIds.isNotEmpty) { if (selectedAppIds.isNotEmpty) {