[mob][photos] Added dark theme assets for empty album state (#3318)
This commit is contained in:
BIN
mobile/assets/2.0x/new_empty_album_dark.png
Normal file
BIN
mobile/assets/2.0x/new_empty_album_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
mobile/assets/3.0x/new_empty_album_dark.png
Normal file
BIN
mobile/assets/3.0x/new_empty_album_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
BIN
mobile/assets/new_empty_album_dark.png
Normal file
BIN
mobile/assets/new_empty_album_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.7 KiB |
@@ -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'),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user