浏览代码

fix animated_switcher.cs

/siyaoH-1.17-PlatformMessage
guanghuispark 4 年前
当前提交
24f4b3ca
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11
      com.unity.uiwidgets/Runtime/widgets/animated_switcher.cs

11
com.unity.uiwidgets/Runtime/widgets/animated_switcher.cs


Key key = null,
Widget child = null,
TimeSpan? duration = null,
TimeSpan? reverseDuration = null,
Curve switchInCurve = null,
Curve switchOutCurve = null,
AnimatedSwitcherTransitionBuilder transitionBuilder = null,

this.layoutBuilder = layoutBuilder ?? defaultLayoutBuilder;
this.child = child;
this.duration = duration;
this.reverseDuration = reverseDuration;
public readonly TimeSpan? reverseDuration;
public readonly Curve switchInCurve;

children: children,
alignment: Alignment.center
);
}
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
properties.add(new IntProperty("duration", duration?.Milliseconds, unit: "ms"));
properties.add(new IntProperty("reverseDuration", reverseDuration?.Milliseconds, unit: "ms", defaultValue: null));
}
}

AnimationController controller = new AnimationController(
duration: widget.duration,
reverseDuration:widget.reverseDuration,
vsync: this
);
Animation<float> animation = new CurvedAnimation(

正在加载...
取消
保存