AvdPicture constructor
const
AvdPicture(
- PictureProvider pictureProvider, {
- Key? key,
- bool matchTextDirection = false,
- bool allowDrawingOutsideViewBox = false,
- WidgetBuilder? placeholderBuilder,
- ColorFilter? colorFilter,
Instantiates a widget that renders an AVD picture using the pictureProvider.
If matchTextDirection is set to true, the picture will be flipped
horizontally in TextDirection.rtl contexts.
The allowDrawingOutsideOfViewBox parameter should be used with caution -
if set to true, it will not clip the canvas used internally to the view box,
meaning the picture may draw beyond the intended area and lead to undefined
behavior or additional memory overhead.
A custom placeholderBuilder can be specified for cases where decoding or
acquiring data may take a noticeably long time, e.g. for a network picture.
Implementation
const AvdPicture(
this.pictureProvider, {
Key? key,
this.matchTextDirection = false,
this.allowDrawingOutsideViewBox = false,
this.placeholderBuilder,
this.colorFilter,
}) : super(key: key);