Class FadeInImage
Inheritance
FadeInImage
Inherited Members
Namespace: Unity.UIWidgets.widgets
Syntax
public class FadeInImage : StatefulWidget
Constructors
FadeInImage(ImageProvider, ImageProvider, Nullable<TimeSpan>, Curve, Nullable<TimeSpan>, Curve, Nullable<Single>, Nullable<Single>, Nullable<BoxFit>, Alignment, ImageRepeat, Key)
Declaration
public FadeInImage(ImageProvider placeholder, ImageProvider image, TimeSpan? fadeOutDuration = default(TimeSpan? ), Curve fadeOutCurve = null, TimeSpan? fadeInDuration = default(TimeSpan? ), Curve fadeInCurve = null, float? width = default(float? ), float? height = default(float? ), BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Key key = null)
Parameters
Type | Name | Description |
---|---|---|
ImageProvider | placeholder | |
ImageProvider | image | |
Nullable<TimeSpan> | fadeOutDuration | |
Curve | fadeOutCurve | |
Nullable<TimeSpan> | fadeInDuration | |
Curve | fadeInCurve | |
Nullable<Single> | width | |
Nullable<Single> | height | |
Nullable<BoxFit> | fit | |
Alignment | alignment | |
ImageRepeat | repeat | |
Key | key |
Fields
alignment
Declaration
public readonly Alignment alignment
Field Value
Type | Description |
---|---|
Alignment |
fadeInCurve
Declaration
public readonly Curve fadeInCurve
Field Value
Type | Description |
---|---|
Curve |
fadeInDuration
Declaration
public readonly TimeSpan fadeInDuration
Field Value
Type | Description |
---|---|
TimeSpan |
fadeOutCurve
Declaration
public readonly Curve fadeOutCurve
Field Value
Type | Description |
---|---|
Curve |
fadeOutDuration
Declaration
public readonly TimeSpan fadeOutDuration
Field Value
Type | Description |
---|---|
TimeSpan |
fit
Declaration
public readonly BoxFit? fit
Field Value
Type | Description |
---|---|
Nullable<BoxFit> |
height
Declaration
public readonly float? height
Field Value
Type | Description |
---|---|
Nullable<Single> |
image
Declaration
public readonly ImageProvider image
Field Value
Type | Description |
---|---|
ImageProvider |
placeholder
Declaration
public readonly ImageProvider placeholder
Field Value
Type | Description |
---|---|
ImageProvider |
repeat
Declaration
public readonly ImageRepeat repeat
Field Value
Type | Description |
---|---|
ImageRepeat |
width
Declaration
public readonly float? width
Field Value
Type | Description |
---|---|
Nullable<Single> |
Methods
assetNetwork(String, String, AssetBundle, Nullable<Single>, Single, Nullable<TimeSpan>, Curve, Nullable<TimeSpan>, Curve, Nullable<Single>, Nullable<Single>, Nullable<BoxFit>, Alignment, ImageRepeat, Key)
Declaration
public static FadeInImage assetNetwork(string placeholder, string image, AssetBundle bundle = null, float? placeholderScale = default(float? ), float imageScale = 1F, TimeSpan? fadeOutDuration = default(TimeSpan? ), Curve fadeOutCurve = null, TimeSpan? fadeInDuration = default(TimeSpan? ), Curve fadeInCurve = null, float? width = default(float? ), float? height = default(float? ), BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Key key = null)
Parameters
Type | Name | Description |
---|---|---|
String | placeholder | |
String | image | |
AssetBundle | bundle | |
Nullable<Single> | placeholderScale | |
Single | imageScale | |
Nullable<TimeSpan> | fadeOutDuration | |
Curve | fadeOutCurve | |
Nullable<TimeSpan> | fadeInDuration | |
Curve | fadeInCurve | |
Nullable<Single> | width | |
Nullable<Single> | height | |
Nullable<BoxFit> | fit | |
Alignment | alignment | |
ImageRepeat | repeat | |
Key | key |
Returns
Type | Description |
---|---|
FadeInImage |
createState()
Declaration
public override State createState()
Returns
Type | Description |
---|---|
State |
Overrides
memoryNetwork(Byte[], String, Single, Single, Nullable<TimeSpan>, Curve, Nullable<TimeSpan>, Curve, Nullable<Single>, Nullable<Single>, Nullable<BoxFit>, Alignment, ImageRepeat, Key)
Declaration
public static FadeInImage memoryNetwork(byte[] placeholder, string image, float placeholderScale = 1F, float imageScale = 1F, TimeSpan? fadeOutDuration = default(TimeSpan? ), Curve fadeOutCurve = null, TimeSpan? fadeInDuration = default(TimeSpan? ), Curve fadeInCurve = null, float? width = default(float? ), float? height = default(float? ), BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Key key = null)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | placeholder | |
String | image | |
Single | placeholderScale | |
Single | imageScale | |
Nullable<TimeSpan> | fadeOutDuration | |
Curve | fadeOutCurve | |
Nullable<TimeSpan> | fadeInDuration | |
Curve | fadeInCurve | |
Nullable<Single> | width | |
Nullable<Single> | height | |
Nullable<BoxFit> | fit | |
Alignment | alignment | |
ImageRepeat | repeat | |
Key | key |
Returns
Type | Description |
---|---|
FadeInImage |