Fix music library not scanning when there's an album with a pure black cover

This commit is contained in:
Frieder Hannenheim 2023-07-04 18:30:26 +02:00
parent 0d7031aa7c
commit 98e3e0fdc6

View file

@ -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);