Added icon for non-installed Apps

This commit is contained in:
Imran Remtulla
2023-03-01 20:20:34 -05:00
parent 57f7bf44c2
commit 8648c1bea7
2 changed files with 17 additions and 1 deletions

View File

@@ -264,7 +264,22 @@ class AppsPageState extends State<AppsPage> {
listedApps[index].installedInfo!.icon!,
gaplessPlayback: true,
)
: null,
: Row(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Transform(
alignment: Alignment.center,
transform: Matrix4.rotationZ(0.31),
child: Image(
image: const AssetImage(
'assets/graphics/icon.png'),
color: Colors.white.withOpacity(0.1),
colorBlendMode: BlendMode.modulate,
gaplessPlayback: true,
),
),
]),
title: Text(
maxLines: 1,
listedApps[index].installedInfo?.name ??

View File

@@ -97,6 +97,7 @@ flutter:
assets:
- assets/translations/
- assets/graphics/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware