SVG/src/picture_provider library
Classes
- AssetBundlePictureKey
-
Key for the picture obtained by an
AssetPictureor ExactAssetPicture. - AssetBundlePictureProvider
- A subclass of PictureProvider that knows about AssetBundles.
- 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.
- PictureConfiguration
- Configuration information passed to the PictureProvider.resolve method to select a specific picture.
-
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.
- StringPicture
- Decodes the given String as a picture, associating it with the given scale.
Functions
-
createLocalPictureConfiguration(
BuildContext? context, {Rect? viewBox, ColorFilter? colorFilterOverride, Color? color, BlendMode? colorBlendMode}) → PictureConfiguration - Creates an PictureConfiguration based on the given BuildContext (and optionally size).
Typedefs
-
PictureInfoDecoder<
T> = Future< PictureInfo> Function(T data, ColorFilter? colorFilter, String key) - The signature of a function that can decode raw SVG data into a Picture.
-
PictureInfoDecoderBuilder<
T> = PictureInfoDecoder< T> Function(SvgTheme theme) -
The signature of a builder that returns a PictureInfoDecoder
based on the provided
theme.