[mob][photos] Added dark theme assets for empty album state (#3318)

This commit is contained in:
Neeraj Gupta
2024-09-17 20:50:21 +05:30
committed by GitHub
4 changed files with 4 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@@ -17,13 +17,16 @@ class EmptyAlbumState extends StatelessWidget {
@override
Widget build(BuildContext context) {
final isLightMode = Theme.of(context).brightness == Brightness.light;
return isFromCollectPhotos
? Stack(
children: [
Center(
child: Opacity(
opacity: 0.5,
child: Image.asset('assets/new_empty_album.png'),
child: isLightMode
? Image.asset('assets/new_empty_album.png')
: Image.asset('assets/new_empty_album_dark.png'),
),
),
],