QueryArtworkWidget constructor

const QueryArtworkWidget({
  1. Key? key,
  2. required int id,
  3. required ArtworkType type,
  4. required String? artwork,
  5. required int deviceSDK,
  6. ArtworkFormat? format,
  7. int? size,
  8. bool? requestPermission,
  9. FilterQuality? artworkQuality,
  10. BorderRadius? artworkBorder,
  11. double? artworkWidth,
  12. double? artworkHeight,
  13. BoxFit? artworkFit,
  14. Clip? artworkClipBehavior,
  15. double? artworkScale,
  16. ImageRepeat? artworkRepeat,
  17. Color? artworkColor,
  18. BlendMode? artworkBlendMode,
  19. bool? keepOldArtwork,
  20. Widget? nullArtworkWidget,
})

Create a custom image Widget.

If you are using Android >= 29 the image returned it's from queryArtworks and if Android is below 29 the image it's returned from artwork.

Implementation

const QueryArtworkWidget(
    {Key? key,
    required this.id,
    required this.type,
    required this.artwork,
    required this.deviceSDK,
    this.format,
    this.size,
    this.requestPermission,
    this.artworkQuality,
    this.artworkBorder,
    this.artworkWidth,
    this.artworkHeight,
    this.artworkFit,
    this.artworkClipBehavior,
    this.artworkScale,
    this.artworkRepeat,
    this.artworkColor,
    this.artworkBlendMode,
    this.keepOldArtwork,
    // this.cacheArtworkHeight,
    // this.cacheArtworkWidth,
    this.nullArtworkWidget});