Inheritance
System.Object
Image
public class Image : StatefulWidget
Constructors
Declaration
public Image(Key key = null, ImageProvider image = null, float? width = default(float? ), float? height = default(float? ), Color color = null, BlendMode colorBlendMode = BlendMode.srcIn, BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Rect centerSlice = null, bool gaplessPlayback = false, FilterMode filterMode = null)
Parameters
Fields
Declaration
public readonly Alignment alignment
Field Value
Declaration
public readonly Rect centerSlice
Field Value
Declaration
public readonly Color color
Field Value
Declaration
public readonly BlendMode colorBlendMode
Field Value
Declaration
public readonly FilterMode filterMode
Field Value
Type |
Description |
FilterMode |
|
Declaration
public readonly BoxFit? fit
Field Value
Type |
Description |
System.Nullable<BoxFit> |
|
Declaration
public readonly bool gaplessPlayback
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly float? height
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
Declaration
public readonly ImageProvider image
Field Value
Declaration
public readonly ImageRepeat repeat
Field Value
Declaration
public readonly float? width
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
Methods
Declaration
public static Image asset(string name, Key key = null, AssetBundle bundle = null, float? scale = default(float? ), float? width = default(float? ), float? height = default(float? ), Color color = null, BlendMode colorBlendMode = BlendMode.srcIn, BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Rect centerSlice = null, bool gaplessPlayback = false, FilterMode filterMode = null)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Key |
key |
|
AssetBundle |
bundle |
|
System.Nullable<System.Single> |
scale |
|
System.Nullable<System.Single> |
width |
|
System.Nullable<System.Single> |
height |
|
Color |
color |
|
BlendMode |
colorBlendMode |
|
System.Nullable<BoxFit> |
fit |
|
Alignment |
alignment |
|
ImageRepeat |
repeat |
|
Rect |
centerSlice |
|
System.Boolean |
gaplessPlayback |
|
FilterMode |
filterMode |
|
Returns
Declaration
public override State createState()
Returns
Overrides
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides
Declaration
public static Image file(string file, Key key = null, float scale = 1F, float? width = default(float? ), float? height = default(float? ), Color color = null, BlendMode colorBlendMode = BlendMode.srcIn, BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Rect centerSlice = null, bool gaplessPlayback = false, FilterMode filterMode = null)
Parameters
Type |
Name |
Description |
System.String |
file |
|
Key |
key |
|
System.Single |
scale |
|
System.Nullable<System.Single> |
width |
|
System.Nullable<System.Single> |
height |
|
Color |
color |
|
BlendMode |
colorBlendMode |
|
System.Nullable<BoxFit> |
fit |
|
Alignment |
alignment |
|
ImageRepeat |
repeat |
|
Rect |
centerSlice |
|
System.Boolean |
gaplessPlayback |
|
FilterMode |
filterMode |
|
Returns
Declaration
public static Image memory(byte[] bytes, Key key = null, float scale = 1F, float? width = default(float? ), float? height = default(float? ), Color color = null, BlendMode colorBlendMode = BlendMode.srcIn, BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Rect centerSlice = null, bool gaplessPlayback = false, FilterMode filterMode = null)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
Key |
key |
|
System.Single |
scale |
|
System.Nullable<System.Single> |
width |
|
System.Nullable<System.Single> |
height |
|
Color |
color |
|
BlendMode |
colorBlendMode |
|
System.Nullable<BoxFit> |
fit |
|
Alignment |
alignment |
|
ImageRepeat |
repeat |
|
Rect |
centerSlice |
|
System.Boolean |
gaplessPlayback |
|
FilterMode |
filterMode |
|
Returns
Declaration
public static Image network(string src, Key key = null, float scale = 1F, float? width = default(float? ), float? height = default(float? ), Color color = null, BlendMode colorBlendMode = BlendMode.srcIn, BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Rect centerSlice = null, bool gaplessPlayback = false, FilterMode filterMode = null, IDictionary<string, string> headers = null)
Parameters
Type |
Name |
Description |
System.String |
src |
|
Key |
key |
|
System.Single |
scale |
|
System.Nullable<System.Single> |
width |
|
System.Nullable<System.Single> |
height |
|
Color |
color |
|
BlendMode |
colorBlendMode |
|
System.Nullable<BoxFit> |
fit |
|
Alignment |
alignment |
|
ImageRepeat |
repeat |
|
Rect |
centerSlice |
|
System.Boolean |
gaplessPlayback |
|
FilterMode |
filterMode |
|
System.Collections.Generic.IDictionary<System.String, System.String> |
headers |
|
Returns