QueryArtworkWidget constructor
const
QueryArtworkWidget({
- Key? key,
- required int id,
- required ArtworkType type,
- int quality = 50,
- OnAudioQuery? controller,
- ArtworkFormat format = ArtworkFormat.JPEG,
- int size = 200,
- FilterQuality artworkQuality = FilterQuality.low,
- BorderRadius? artworkBorder,
- double artworkWidth = 50,
- double artworkHeight = 50,
- BoxFit artworkFit = BoxFit.cover,
- Clip artworkClipBehavior = Clip.antiAlias,
- double artworkScale = 1.0,
- ImageRepeat artworkRepeat = ImageRepeat.noRepeat,
- Color? artworkColor,
- BlendMode? artworkBlendMode,
- bool keepOldArtwork = false,
- Widget? nullArtworkWidget,
- Widget errorBuilder()?,
- Widget frameBuilder(
- BuildContext,
- Widget,
- int?,
- 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);