浏览代码

stash changes

/siyaoH-1.17-PlatformMessage
xingweizhu 4 年前
当前提交
ed28dc2a
共有 3 个文件被更改,包括 512 次插入234 次删除
  1. 36
      com.unity.uiwidgets/Runtime/material/bottom_sheet.cs
  2. 706
      com.unity.uiwidgets/Runtime/material/scaffold.cs
  3. 4
      com.unity.uiwidgets/Runtime/material/snack_bar.cs

36
com.unity.uiwidgets/Runtime/material/bottom_sheet.cs


return bottomSheet;
}
}
class _BottomSheetSuspendedCurve : ParametricCurve<float> {
internal _BottomSheetSuspendedCurve(
float startingPoint,
Curve curve = null
) {
D.assert(curve != null);
this.startingPoint = startingPoint;
this.curve = curve ?? Curves.easeOutCubic;
}
public readonly float startingPoint;
public readonly Curve curve;
public override float transform(float t) {
D.assert(t >= 0.0 && t <= 1.0);
D.assert(startingPoint >= 0.0 && startingPoint <= 1.0);
if (t < startingPoint) {
return t;
}
if (t == 1.0) {
return t;
}
float curveProgress = (t - startingPoint) / (1 - startingPoint);
float transformed = curve.transform(curveProgress);
return Mathf.Lerp(startingPoint, 1, transformed);
}
public override string ToString() {
return $"{foundation_.describeIdentity(this)}({startingPoint}, {curve})";
}
}
}

706
com.unity.uiwidgets/Runtime/material/scaffold.cs
文件差异内容过多而无法显示
查看文件

4
com.unity.uiwidgets/Runtime/material/snack_bar.cs


public readonly VoidCallback onVisible;
static AnimationController createAnimationController(TickerProvider vsync) {
internal static AnimationController createAnimationController(TickerProvider vsync) {
return new AnimationController(
duration: SnackBarUtils._snackBarTransitionDuration,
debugLabel: "SnackBar",

SnackBar withAnimation(Animation<float> newAnimation, Key fallbackKey = null) {
internal SnackBar withAnimation(Animation<float> newAnimation, Key fallbackKey = null) {
return new SnackBar(
key: key ?? fallbackKey,
content: content,

正在加载...
取消
保存