Adjust Apps list trailing UI spacing and touch area

This commit is contained in:
Imran Remtulla
2023-05-14 12:53:40 -04:00
parent eb0be196da
commit e256ada2dc

View File

@@ -443,7 +443,9 @@ class AppsPageState extends State<AppsPage> {
width: 10, width: 10,
) )
: const SizedBox.shrink(), : const SizedBox.shrink(),
Column( GestureDetector(
onTap: showChangesFn,
child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,
children: [ children: [
@@ -451,29 +453,25 @@ class AppsPageState extends State<AppsPage> {
Container( Container(
constraints: BoxConstraints( constraints: BoxConstraints(
maxWidth: MediaQuery.of(context).size.width / 4), maxWidth: MediaQuery.of(context).size.width / 4),
child: Text( child: Text(getVersionText(index),
getVersionText(index),
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
textAlign: TextAlign.end, textAlign: TextAlign.end)),
)),
]), ]),
Row( Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
GestureDetector( Text(
onTap: showChangesFn,
child: Text(
getChangesButtonString(index, showChangesFn != null), getChangesButtonString(index, showChangesFn != null),
style: TextStyle( style: TextStyle(
fontStyle: FontStyle.italic, fontStyle: FontStyle.italic,
decoration: showChangesFn != null decoration: showChangesFn != null
? TextDecoration.underline ? TextDecoration.underline
: TextDecoration.none), : TextDecoration.none),
)) )
], ],
), ),
], ],
) ))
], ],
); );
@@ -542,15 +540,20 @@ class AppsPageState extends State<AppsPage> {
: FontWeight.normal)), : FontWeight.normal)),
trailing: listedApps[index].downloadProgress != null trailing: listedApps[index].downloadProgress != null
? SizedBox( ? SizedBox(
width: 110, width: 90,
child: Text(listedApps[index].downloadProgress! >= 0 child: Text(
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.start
: TextAlign.end,
))
: trailingRow, : trailingRow,
onTap: () { onTap: () {
if (selectedAppIds.isNotEmpty) { if (selectedAppIds.isNotEmpty) {