flutter_svg
library
Classes
AssetBundlePictureKey
Key for the picture obtained by an AssetPicture
or ExactAssetPicture .
AssetBundlePictureProvider
A subclass of PictureProvider that knows about AssetBundle s.
CacheCompatibilityTester
Tests whether a DrawableRoot should be cache invalidated given old and new
external parameter changes.
DefaultSvgTheme
The SVG theme to apply to descendant SvgPicture widgets
which don't have explicit theme values.
Drawable
Base interface for vector drawing.
DrawableDefinitionServer
Contains reusable drawing elements that can be referenced by a String ID.
DrawableGradient
Basic information describing a gradient.
DrawableGroup
Represents a group of drawing elements that may share a common transform
,
stroke
, or fill
.
DrawableLinearGradient
Represents the data needed to create a Gradient.linear .
DrawablePaint
A wrapper class for Flutter's Paint class.
DrawableParent
A Drawable that can have child Drawables
and DrawableStyle .
DrawableRadialGradient
Represents the information needed to create a Gradient.radial .
DrawableRasterImage
A raster image (e.g. PNG, JPEG, or GIF) embedded in the drawable.
DrawableRoot
The root element of a drawable.
DrawableShape
Represents a drawing element that will be rendered to the canvas.
DrawableStyle
Styling information for vector drawing.
DrawableStyleable
A Drawable that can have a DrawableStyle applied to it.
DrawableText
A Drawable for text objects.
DrawableTextStyle
A wrapper class for Flutter's TextStyle class.
DrawableViewport
Contains the viewport size and offset for a Drawable.
ExactAssetPicture
Fetches a picture from an AssetBundle , associating it with the given scale.
FilePicture
Decodes the given File object as a picture, associating it with the given
scale.
MemoryPicture
Decodes the given String buffer as a picture, associating it with the
given scale.
NetworkPicture
Fetches the given URL from the network, associating it with the given scale.
NetworkPictureKeyData
The PictureKey.keyData for a NetworkPicture .
OneFramePictureStreamCompleter
Manages the loading of dart:ui.Picture objects for static PictureStream s (those
with only one frame).
PictureConfiguration
Configuration information passed to the PictureProvider.resolve method to
select a specific picture.
PictureHandle
An opaque handle used by PictureInfo to track the lifecycle of a
Picture .
PictureInfo
Represents information about a ui.Picture to be drawn on a canvas.
PictureKey <T >
An immutable key representing the current state of a PictureProvider .
PictureProvider <T , U >
Identifies a picture without committing to the precise final asset. This
allows a set of pictures to be identified and for the precise picture to later
be resolved based on the environment, e.g. the device pixel ratio.
PictureStream
A handle to an image resource.
PictureStreamCompleter
Base class for those that manage the loading of dart:ui.Picture objects for
PictureStream s.
StringPicture
Decodes the given String as a picture, associating it with the
given scale.
Svg
A utility class for decoding SVG data to a DrawableRoot or a PictureInfo .
SvgPicture
A widget that will parse SVG data into a Picture using a PictureProvider .
SvgTheme
A theme used when decoding an SVG picture.
Functions
createLocalPictureConfiguration (BuildContext ? context , {Rect ? viewBox , ColorFilter ? colorFilterOverride , Color ? color , BlendMode ? colorBlendMode })
→ PictureConfiguration
Creates an PictureConfiguration based on the given BuildContext (and
optionally size).
precachePicture (PictureProvider provider , BuildContext ? context , {Rect ? viewBox , ColorFilter ? colorFilterOverride , Color ? color , BlendMode ? colorBlendMode , PictureErrorListener ? onError })
→ Future <void >
Prefetches an SVG Picture into the picture cache.