mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-14 02:48:10 +02:00
Adjust Apps list trailing UI spacing and touch area
This commit is contained in:
@@ -443,37 +443,35 @@ class AppsPageState extends State<AppsPage> {
|
|||||||
width: 10,
|
width: 10,
|
||||||
)
|
)
|
||||||
: const SizedBox.shrink(),
|
: const SizedBox.shrink(),
|
||||||
Column(
|
GestureDetector(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
onTap: showChangesFn,
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
child: Column(
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
Row(mainAxisSize: MainAxisSize.min, children: [
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
Container(
|
|
||||||
constraints: BoxConstraints(
|
|
||||||
maxWidth: MediaQuery.of(context).size.width / 4),
|
|
||||||
child: Text(
|
|
||||||
getVersionText(index),
|
|
||||||
overflow: TextOverflow.ellipsis,
|
|
||||||
textAlign: TextAlign.end,
|
|
||||||
)),
|
|
||||||
]),
|
|
||||||
Row(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
children: [
|
children: [
|
||||||
GestureDetector(
|
Row(mainAxisSize: MainAxisSize.min, children: [
|
||||||
onTap: showChangesFn,
|
Container(
|
||||||
child: Text(
|
constraints: BoxConstraints(
|
||||||
|
maxWidth: MediaQuery.of(context).size.width / 4),
|
||||||
|
child: Text(getVersionText(index),
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
textAlign: TextAlign.end)),
|
||||||
|
]),
|
||||||
|
Row(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: [
|
||||||
|
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(
|
||||||
? tr('percentProgress', args: [
|
listedApps[index].downloadProgress! >= 0
|
||||||
listedApps[index]
|
? tr('percentProgress', args: [
|
||||||
.downloadProgress!
|
listedApps[index]
|
||||||
.toInt()
|
.downloadProgress!
|
||||||
.toString()
|
.toInt()
|
||||||
])
|
.toString()
|
||||||
: tr('pleaseWait')))
|
])
|
||||||
|
: tr('pleaseWait'),
|
||||||
|
textAlign: (listedApps[index].downloadProgress! >= 0)
|
||||||
|
? TextAlign.start
|
||||||
|
: TextAlign.end,
|
||||||
|
))
|
||||||
: trailingRow,
|
: trailingRow,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (selectedAppIds.isNotEmpty) {
|
if (selectedAppIds.isNotEmpty) {
|
||||||
|
Reference in New Issue
Block a user