QueryArtworkWidget class

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

A simple example on how you can use the queryArtwork.

Important:

  • If controller is null, will be create a new instance.
  • Log set with setLogConfig will only work if controller is not null.

See more: QueryArtworkWidget

Inheritance

Constructors

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(BuildContext, Object, StackTrace?)?, Widget frameBuilder(BuildContext, Widget, int?, bool)?})
Widget that will help to "query" artwork for song/album.
const

Properties

artworkBlendMode BlendMode?
Used to define artwork blend.
final
artworkBorder BorderRadius?
Used to define the artwork border radius.
final
artworkClipBehavior Clip
Used to define artwork clip.
final
artworkColor Color?
Used to define artwork color.
final
artworkFit BoxFit
Used to define artwork fit.
final
artworkHeight double
Used to define artwork height.
final
artworkQuality FilterQuality
Used to define the artwork quality.
final
artworkRepeat ImageRepeat
Used to define if artwork should repeat.
final
artworkScale double
Used to define artwork scale.
final
artworkWidth double
Used to define artwork width.
final
controller OnAudioQuery?
Used to call the platform specific method.
final
errorBuilder → (Widget Function(BuildContext, Object, StackTrace?)?)
A builder function that is called if an error occurs during image loading.
final
format ArtworkFormat
Used to define artwork format.
final
frameBuilder → (Widget Function(BuildContext, Widget, int?, bool)?)
A builder function responsible for creating the widget that represents this image.
final
hashCode int
The hash code for this object.
no setterinherited
id int
Used to find and get image.
final
keepOldArtwork bool
Used to define if artwork should keep old art even when Flutter State change.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
nullArtworkWidget Widget?
Used to define a Widget when audio/song don't return any artwork.
final
quality int
Used to define artwork quality.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
Used to define artwork size.
final
type ArtworkType
Used to define artwork type.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited