QueryArtworkWidget constructor

const QueryArtworkWidget({
  1. Key? key,
  2. required int id,
  3. required ArtworkType type,
  4. int quality = 50,
  5. OnAudioQuery? controller,
  6. ArtworkFormat format = ArtworkFormat.JPEG,
  7. int size = 200,
  8. FilterQuality artworkQuality = FilterQuality.low,
  9. BorderRadius? artworkBorder,
  10. double artworkWidth = 50,
  11. double artworkHeight = 50,
  12. BoxFit artworkFit = BoxFit.cover,
  13. Clip artworkClipBehavior = Clip.antiAlias,
  14. double artworkScale = 1.0,
  15. ImageRepeat artworkRepeat = ImageRepeat.noRepeat,
  16. Color? artworkColor,
  17. BlendMode? artworkBlendMode,
  18. bool keepOldArtwork = false,
  19. Widget? nullArtworkWidget,
  20. Widget errorBuilder(
    1. BuildContext,
    2. Object,
    3. StackTrace?
    )?,
  21. Widget frameBuilder(
    1. BuildContext,
    2. Widget,
    3. int?,
    4. bool,
    )?,
})

Widget that will help to "query" artwork for song/album.

A simple example on how you can use the queryArtwork.

See more: QueryArtworkWidget

Implementation

const QueryArtworkWidget({
  Key? key,
  required this.id,
  required this.type,
  this.quality = 50,
  this.controller,
  this.format = ArtworkFormat.JPEG,
  this.size = 200,
  this.artworkQuality = FilterQuality.low,
  this.artworkBorder,
  this.artworkWidth = 50,
  this.artworkHeight = 50,
  this.artworkFit = BoxFit.cover,
  this.artworkClipBehavior = Clip.antiAlias,
  this.artworkScale = 1.0,
  this.artworkRepeat = ImageRepeat.noRepeat,
  this.artworkColor,
  this.artworkBlendMode,
  this.keepOldArtwork = false,
  this.nullArtworkWidget,
  this.errorBuilder,
  this.frameBuilder,
})  : assert(quality <= 100),
      super(key: key);