Dynamic
library
Classes
AssetBundlePictureKey
Key for the picture obtained by an AssetPicture or ExactAssetPicture .
AssetBundlePictureProvider
A subclass of PictureProvider that knows about AssetBundle s.
BaseClient
The abstract base class for an HTTP client.
BaseRequest
The base class for HTTP requests.
BaseResponse
The base class for HTTP responses.
ByteStream
A stream of chunks of bytes representing a single piece of data.
CacheCompatibilityTester
Tests whether a DrawableRoot should be cache invalidated given old and new
external parameter changes.
Client
The interface for HTTP clients that take care of maintaining persistent
connections across multiple requests to the same server.
Connectivity
Discover network connectivity configurations: Distinguish between WI-FI and cellular, check WI-FI status and more.
DefaultSvgTheme
The SVG theme to apply to descendant Svg widgets
which don't have explicit theme values.
DownloadProgress
Progress of the file that is being downloaded from the originalUrl.
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.
dynamicsize
ExactAssetPicture
Fetches a picture from an AssetBundle , associating it with the given scale.
FilePicker
The interface that implementations of file_picker must implement.
FilePickerResult
FilePicture
Decodes the given File object as a picture, associating it with the given
scale.
FToast
Runs on dart side this has no interaction with the Native Side
Works with all platforms just in two lines of code
final fToast = FToast().init(context)
fToast.showToast(child)
Logger
MemoryPicture
Decodes the given String buffer as a picture, associating it with the
given scale.
MultiImageStreamCompleter
An ImageStreamCompleter with support for loading multiple images.
MultipartFile
A file to be uploaded as part of a MultipartRequest .
MultipartRequest
A multipart/form-data request.
NetImage
Image widget to show NetworkImage with caching functionality.
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).
OptimizedCacheImageProvider
An ImageProvider to load images from the network with caching functionality.
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.
PlatformFile
Request
An HTTP request where the entire request body is known in advance.
Response
An HTTP response where the entire response body is known in advance.
Routs
SharedPreferences
Wraps NSUserDefaults (on iOS) and SharedPreferences (on Android), providing
a persistent store for simple data.
SharedPreferencesAsync
Provides a persistent store for simple data.
SharedPreferencesOptions
Basic options for creating SharedPreferencesAsync classes.
SharedPreferencesWithCache
Provides a persistent store for simple data.
SharedPreferencesWithCacheOptions
Options necessary to create a SharedPreferencesWithCache .
Shimmer
A widget renders shimmer effect over child widget tree.
StreamedRequest
An HTTP request where the request body is sent asynchronously after the
connection has been established and the headers have been sent.
StreamedResponse
An HTTP response where the response body is received asynchronously after
the headers have been received.
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.
toast
Plugin to show a toast message on screen
Only for android, ios and Web platforms
ToastStateFulState
State for _ToastStateFul
Functions
createLocalPictureConfiguration (BuildContext ? context , {Rect ? viewBox , ColorFilter ? colorFilterOverride , Color ? color , BlendMode ? colorBlendMode })
→ PictureConfiguration
Creates an PictureConfiguration based on the given BuildContext (and
optionally size).
delete (Uri url , {Object ? body , Encoding ? encoding })
→ Future <Response >
Sends an HTTP DELETE request with the given headers to the given URL.
get (Uri url , { })
→ Future <Response >
Sends an HTTP GET request with the given headers to the given URL.
head (Uri url , { })
→ Future <Response >
Sends an HTTP HEAD request with the given headers to the given URL.
log (String message )
→ void
patch (Uri url , {Object ? body , Encoding ? encoding })
→ Future <Response >
Sends an HTTP PATCH request with the given headers and body to the given
URL.
post (Uri url , {Object ? body , Encoding ? encoding })
→ Future <Response >
Sends an HTTP POST request with the given headers and body to the given URL.
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.
put (Uri url , {Object ? body , Encoding ? encoding })
→ Future <Response >
Sends an HTTP PUT request with the given headers and body to the given URL.
read (Uri url , { })
→ Future <String >
Sends an HTTP GET request with the given headers to the given URL and
returns a Future that completes to the body of the response as a String .
readBytes (Uri url , { })
→ Future <Uint8List >
Sends an HTTP GET request with the given headers to the given URL and
returns a Future that completes to the body of the response as a list of
bytes.
runWithClient <R > (R body (), Client clientFactory (), {ZoneSpecification ? zoneSpecification })
→ R
Runs body in its own Zone with the Client returned by clientFactory
set as the default Client .
Typedefs
ErrorListener
= void Function()
Function which is called after loading the image failed.
ImageWidgetBuilder
= Widget Function(BuildContext context , ImageProvider <Object > imageProvider )
Builder function to create an image widget. The function is called after
the ImageProvider completes the image loading.
LoadingErrorWidgetBuilder
= Widget Function(BuildContext context , String url , dynamic error )
Builder function to create an error widget. This builder is called when
the image failed loading, for example due to a 404 NotFound exception.
PictureErrorListener
= void Function(Object exception , StackTrace stackTrace )
The signature of a method that listens for errors on picture stream resolution.
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.
PictureListener
= dynamic Function(PictureInfo ? image , bool synchronousCall )
Signature for callbacks reporting that an image is available.
PlaceholderWidgetBuilder
= Widget Function(BuildContext context , String url )
Builder function to create a placeholder widget. The function is called
once while the ImageProvider is loading the image.
PositionedToastBuilder
= Widget Function(BuildContext context , Widget child )
Signature for a function to buildCustom Toast
ProgressIndicatorBuilder
= Widget Function(BuildContext context , String url , DownloadProgress progress )
Builder function to create a progress indicator widget. The function is
called every time a chuck of the image is downloaded from the web, but at
least once during image loading.
Exceptions / Errors
ClientException
An exception caused by an error in a pkg/http client.