Widget topic
Support for displaying a SccalableImage
in a widget.
ScalableImage
s can be used directly, but sometimes it's
more convenient to use a ScalableImageWidget
.
Classes
- ExportedIDLookup
- Used to look up what part of a ScalableImage is clicked on within a ScalableImageWidget.
- ExportedIDLookup
- Used to look up what part of a ScalableImage is clicked on within a ScalableImageWidget.
- ScalableImageCache
-
An LRU cache of ScalableImage futures derived from ScalableImageSource
instances. A cache with a non-zero size could make
sense, for example, as part of the state of a
stateful widget that builds entries on demand, and that uses
ScalableImageWidget.fromSISource to asynchronously load scalable images.
See, for example,
cache.dart
in theexample
directory. - ScalableImageCache
-
An LRU cache of ScalableImage futures derived from ScalableImageSource
instances. A cache with a non-zero size could make
sense, for example, as part of the state of a
stateful widget that builds entries on demand, and that uses
ScalableImageWidget.fromSISource to asynchronously load scalable images.
See, for example,
cache.dart
in theexample
directory. - ScalableImageSource
- An asynchronous source of a ScalableImage. This is used for asynchronous loading of an SI asset by a ScalableImageWidget, e.g from an AssetBundle. This class may be subclassed by clients of this library, e.g. for loading from other network sources.
- ScalableImageSource
- An asynchronous source of a ScalableImage. This is used for asynchronous loading of an SI asset by a ScalableImageWidget, e.g from an AssetBundle. This class may be subclassed by clients of this library, e.g. for loading from other network sources.
- ScalableImageWidget
-
A widget for displaying a ScalableImage. The image can be
automatically scaled by the widget, and fit into the available area
with a
BoxFit
and anAlignment
. - ScalableImageWidget
-
A widget for displaying a ScalableImage. The image can be
automatically scaled by the widget, and fit into the available area
with a
BoxFit
and anAlignment
. - ScalingTransform Core
-
A coordinate system transformation to fit a
ScalableImage
into a given container, for a given BoxFit and Alignment. This class is offered as a convenience for scaling ScalableImage instances. It also helps converting positions as rendered back into the ScalableImage's coordinate, e.g. when mapping a touch event into the original SVG's coordinate space. - ScalingTransform Core
-
A coordinate system transformation to fit a
ScalableImage
into a given container, for a given BoxFit and Alignment. This class is offered as a convenience for scaling ScalableImage instances. It also helps converting positions as rendered back into the ScalableImage's coordinate, e.g. when mapping a touch event into the original SVG's coordinate space.