Enable icon caching (#1837)

This commit is contained in:
Imran Remtulla
2024-09-27 19:01:57 -04:00
parent cad14dd6a4
commit 77bebc48bc
3 changed files with 27 additions and 4 deletions

View File

@@ -248,7 +248,8 @@ class _AppPageState extends State<AppPage> {
children: [
const SizedBox(height: 20),
FutureBuilder(
future: appsProvider.updateAppIcon(app?.app.id),
future:
appsProvider.updateAppIcon(app?.app.id, ignoreCache: true),
builder: (ctx, val) {
return app?.icon != null
? Row(

View File

@@ -416,6 +416,8 @@ class AppsPageState extends State<AppsPage> {
? Image.memory(
listedApps[appIndex].icon!,
gaplessPlayback: true,
opacity: AlwaysStoppedAnimation(
listedApps[appIndex].installedInfo == null ? 0.6 : 1),
)
: Row(
mainAxisSize: MainAxisSize.min,