wallpaperPalette property
It generates a palette based current Wallpaper to for use in UI colors.
Note:
- This method needs the READ_EXTERNAL_STORAGE permission on Android Oreo & above.
Implementation
static Future get wallpaperPalette async {
PaletteGenerator _palette;
Uint8List imageData = await getWallpaper;
_palette = await PaletteGenerator.fromUint8List(imageData);
return _palette;
}