mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-11-06 00:03:28 +01:00
Improve icon loading after last commit
This commit is contained in:
@@ -407,12 +407,11 @@ class AppsPageState extends State<AppsPage> {
|
||||
|
||||
getAppIcon(int appIndex) {
|
||||
return FutureBuilder(
|
||||
future:
|
||||
listedApps[appIndex].installedInfo?.applicationInfo?.getAppIcon(),
|
||||
future: appsProvider.updateAppIcon(listedApps[appIndex].app.id),
|
||||
builder: (ctx, val) {
|
||||
return val.data != null
|
||||
return listedApps[appIndex].icon != null
|
||||
? Image.memory(
|
||||
val.data!,
|
||||
listedApps[appIndex].icon!,
|
||||
gaplessPlayback: true,
|
||||
)
|
||||
: Row(
|
||||
|
||||
Reference in New Issue
Block a user