AvdPicture constructor

const AvdPicture(
  1. PictureProvider pictureProvider, {
  2. Key? key,
  3. bool matchTextDirection = false,
  4. bool allowDrawingOutsideViewBox = false,
  5. WidgetBuilder? placeholderBuilder,
  6. 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);