ImageView
A widget to display an image.
Import this type with “”
Type: Image
The image to display. Providing the width
and height
attributes on the image will resize it internally. When no dimensions are given the image will be loaded with its original size. Since the full size image might occupy a lot of memory, it’s recommended to provide exact dimensions.
scaleMode
Type: string, supported values: , fit
, fill
, , none
, default: auto
How to scale the image.
- fill will scale the image proportionally to fill the entire view, possibly cutting off parts of the image. That is, the image will be displayed as small as possible while covering the entire view.
- auto will scale down the image to fit into the view if it is too large, but it won’t scale up a smaller image.
- stretch will resize the image to the actual bounds of the image view.
iOSAndroid
A color to change the image appearance. All opaque parts of the image will be tinted with the given color. Set to to remove the effect.
Fired when the image property has changed.
Event Parameters
target: this The widget the event was fired on.
value: Image The new value of .
load
Fired when the image loading has finished.
Event Parameters
target: this The widget the event was fired on.
Event Parameters
target: this The widget the event was fired on.
value: string The new value of .
tintColorChanged
Fired when the property has changed.
Event Parameters
target: this The widget the event was fired on.
原文: