RawImage class

A widget that displays a dart:ui.Image directly.

The image is painted using paintImage, which describes the meanings of the various fields on this class in more detail.

This widget is rarely used directly. Instead, consider using Image.

Inheritance

Constructors

RawImage({Key key, Image image, double width, double height, double scale: 1.0, Color color, BlendMode colorBlendMode, BoxFit fit, AlignmentGeometry alignment: Alignment.center, ImageRepeat repeat: ImageRepeat.noRepeat, Rect centerSlice, bool matchTextDirection: false, bool invertColors: false, FilterQuality filterQuality: FilterQuality.low })
Creates a widget that displays an image. [...]
const

Properties

alignment AlignmentGeometry
How to align the image within its bounds. [...]
final
centerSlice Rect
The center slice for a nine-patch image. [...]
final
color Color
If non-null, this color is blended with each image pixel using colorBlendMode.
final
colorBlendMode BlendMode
Used to combine color with this image. [...]
final
filterQuality FilterQuality
Used to set the filterQuality of the image Use the "low" quality setting to scale the image, which corresponds to bilinear interpolation, rather than the default "none" which corresponds to nearest-neighbor.
final
fit BoxFit
How to inscribe the image into the space allocated during layout. [...]
final
height double
If non-null, require the image to have this height. [...]
final
image Image
The image to display.
final
invertColors bool
Whether the colors of the image are inverted when drawn. [...]
final
matchTextDirection bool
Whether to paint the image in the direction of the TextDirection. [...]
final
repeat ImageRepeat
How to paint any portions of the layout bounds not covered by the image.
final
scale double
Specifies the image's scale. [...]
final
width double
If non-null, require the image to have this width. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createRenderObject(BuildContext context) RenderImage
Creates an instance of the RenderObject class that this RenderObjectWidget represents, using the configuration described by this RenderObjectWidget. [...]
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
override
updateRenderObject(BuildContext context, covariant RenderImage renderObject) → void
Copies the configuration described by this RenderObjectWidget to the given RenderObject, which will be of the same type as returned by this object's createRenderObject. [...]
override
createElement() LeafRenderObjectElement
RenderObjectWidgets always inflate to a RenderObjectElement subclass.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
didUnmountRenderObject(covariant RenderObject renderObject) → void
A render object previously associated with this widget has been removed from the tree. The given RenderObject will be of the same type as returned by this object's createRenderObject.
@protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style }) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel: DiagnosticLevel.debug }) String
Returns a string representation of this object.
inherited
toStringDeep({String prefixLineOne: '', String prefixOtherLines, DiagnosticLevel minLevel: DiagnosticLevel.debug }) String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner: ', ', DiagnosticLevel minLevel: DiagnosticLevel.debug }) String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited