Fix music library not scanning when there's an album with a pure black cover
This commit is contained in:
parent
0d7031aa7c
commit
98e3e0fdc6
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ Future<Color?> getBackgroundColor(ImageProvider image) async {
|
|||
paletteGenerator.darkVibrantColor?.color,
|
||||
paletteGenerator.lightMutedColor?.color,
|
||||
paletteGenerator.dominantColor?.color,
|
||||
Colors.black,
|
||||
];
|
||||
|
||||
return colors.firstWhere((c) => c != null);
|
||||
|
|
Loading…
Add table
Reference in a new issue