浏览代码

fixed

/main
Json 5 年前
当前提交
fe76af54
共有 1 个文件被更改,包括 11 次插入11 次删除
  1. 22
      Runtime/widgets/implicit_animations.cs

22
Runtime/widgets/implicit_animations.cs


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);

正在加载...
取消
保存