QueryArtworkWidget class

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.

Inheritance

Constructors

QueryArtworkWidget({Key? key, required int id, required ArtworkType type, required String? artwork, required int deviceSDK, ArtworkFormat? format, int? size, bool? requestPermission, FilterQuality? artworkQuality, BorderRadius? artworkBorder, double? artworkWidth, double? artworkHeight, BoxFit? artworkFit, Clip? artworkClipBehavior, double? artworkScale, ImageRepeat? artworkRepeat, Color? artworkColor, BlendMode? artworkBlendMode, bool? keepOldArtwork, Widget? nullArtworkWidget})
Create a custom image Widget.
const

Properties

artwork String?
Used to define artwork
final
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
deviceSDK int
Used to define which version of Android will be used.
final
format ArtworkFormat?
Used to define artwork format.
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
requestPermission bool?
Used to define if it's necessary check user permission.
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