Changed App tile layout

This commit is contained in:
Imran Remtulla
2022-09-24 02:08:21 -04:00
parent 2cfe62142a
commit cbf5057c17

View File

@@ -168,10 +168,8 @@ class _AppsPageState extends State<AppsPage> {
delegate: SliverChildBuilderDelegate( delegate: SliverChildBuilderDelegate(
(BuildContext context, int index) { (BuildContext context, int index) {
return ListTile( return ListTile(
title: Text( title: Text(sortedApps[index].app.name),
'${sortedApps[index].app.author}/${sortedApps[index].app.name}'), subtitle: Text('By ${sortedApps[index].app.author}'),
subtitle: Text(sortedApps[index].app.installedVersion ??
'Not Installed'),
trailing: sortedApps[index].downloadProgress != null trailing: sortedApps[index].downloadProgress != null
? Text( ? Text(
'Downloading - ${sortedApps[index].downloadProgress?.toInt()}%') 'Downloading - ${sortedApps[index].downloadProgress?.toInt()}%')
@@ -179,7 +177,8 @@ class _AppsPageState extends State<AppsPage> {
sortedApps[index].app.installedVersion != sortedApps[index].app.installedVersion !=
sortedApps[index].app.latestVersion sortedApps[index].app.latestVersion
? const Text('Update Available') ? const Text('Update Available')
: null), : Text(sortedApps[index].app.installedVersion ??
'Not Installed')),
onTap: () { onTap: () {
Navigator.push( Navigator.push(
context, context,