|
|
|
|
|
|
|
|
|
|
public class AnimatedAlign : ImplicitlyAnimatedWidget { |
|
|
|
public AnimatedAlign( |
|
|
|
Alignment alignment, |
|
|
|
TimeSpan duration, |
|
|
|
Key key = null, |
|
|
|
Alignment alignment = null, |
|
|
|
Key key = null |
|
|
|
TimeSpan? duration = null |
|
|
|
) : base(key: key, curve: curve ?? Curves.linear, duration: duration) { |
|
|
|
D.assert(alignment != null); |
|
|
|
this.alignment = alignment; |
|
|
|
|
|
|
|
|
|
|
public class AnimatedPositioned : ImplicitlyAnimatedWidget { |
|
|
|
public AnimatedPositioned( |
|
|
|
Widget child, |
|
|
|
TimeSpan duration, |
|
|
|
Key key = null, |
|
|
|
Widget child = null, |
|
|
|
float? left = null, |
|
|
|
float? top = null, |
|
|
|
float? right = null, |
|
|
|
|
|
|
Curve curve = null, |
|
|
|
Key key = null |
|
|
|
TimeSpan? duration = null |
|
|
|
) : base(key: key, curve: curve ?? Curves.linear, duration: duration) { |
|
|
|
D.assert(left == null || right == null || width == null); |
|
|
|
D.assert(top == null || bottom == null || height == null); |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static AnimatedPositioned fromRect( |
|
|
|
TimeSpan duration, |
|
|
|
Key key = null, |
|
|
|
Key key = null |
|
|
|
TimeSpan? duration = null |
|
|
|
) { |
|
|
|
return new AnimatedPositioned( |
|
|
|
child: child, |
|
|
|
|
|
|
|
|
|
|
public class AnimatedPositionedDirectional : ImplicitlyAnimatedWidget { |
|
|
|
public AnimatedPositionedDirectional( |
|
|
|
Widget child, |
|
|
|
TimeSpan duration, |
|
|
|
Key key = null, |
|
|
|
Widget child = null, |
|
|
|
float? start = null, |
|
|
|
float? top = null, |
|
|
|
float? end = null, |
|
|
|
|
|
|
Curve curve = null, |
|
|
|
Key key = null |
|
|
|
TimeSpan? duration = null |
|
|
|
) : base(key: key, curve: curve, duration: duration) { |
|
|
|
D.assert(start == null || end == null || width == null); |
|
|
|
D.assert(top == null || bottom == null || height == null); |
|
|
|