Inheritance
System.Object
AnimatedSwitcher
public class AnimatedSwitcher : StatefulWidget
Constructors
Declaration
public AnimatedSwitcher(Key key = null, Widget child = null, TimeSpan? duration = default(TimeSpan? ), Curve switchInCurve = null, Curve switchOutCurve = null, AnimatedSwitcherTransitionBuilder transitionBuilder = null, AnimatedSwitcherLayoutBuilder layoutBuilder = null)
Parameters
Fields
Declaration
public readonly Widget child
Field Value
Declaration
public readonly TimeSpan? duration
Field Value
Type |
Description |
System.Nullable<System.TimeSpan> |
|
Declaration
public readonly AnimatedSwitcherLayoutBuilder layoutBuilder
Field Value
Declaration
public readonly Curve switchInCurve
Field Value
Declaration
public readonly Curve switchOutCurve
Field Value
Declaration
public readonly AnimatedSwitcherTransitionBuilder transitionBuilder
Field Value
Methods
Declaration
public override State createState()
Returns
Overrides
Declaration
public static Widget defaultLayoutBuilder(Widget currentChild, List<Widget> previousChildren)
Parameters
Type |
Name |
Description |
Widget |
currentChild |
|
System.Collections.Generic.List<Widget> |
previousChildren |
|
Returns
Declaration
public static Widget defaultTransitionBuilder(Widget child, Animation<float> animation)
Parameters
Returns