浏览代码

fix

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
9b77ef16
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      com.unity.uiwidgets/Runtime/material/bottom_app_bar_theme.cs
  2. 2
      com.unity.uiwidgets/Runtime/material/slider_theme.cs

2
com.unity.uiwidgets/Runtime/material/bottom_app_bar_theme.cs


public static BottomAppBarTheme lerp(BottomAppBarTheme a, BottomAppBarTheme b, float t) {
return new BottomAppBarTheme(
color: Color.lerp(a?.color, b?.color, t),
elevation: MathUtils.lerpNullableFloat(a?.elevation ?? 0.0f, b?.elevation ?? 0.0f, t),
elevation: MathUtils.lerpNullableFloat(a?.elevation, b?.elevation, t),
shape: t < 0.5f ? a?.shape : b?.shape
);
}

2
com.unity.uiwidgets/Runtime/material/slider_theme.cs


D.assert(a != null);
D.assert(b != null);
return new SliderThemeData(
trackHeight: MathUtils.lerpNullableFloat(a.trackHeight.Value, b.trackHeight.Value, t),
trackHeight: MathUtils.lerpNullableFloat(a.trackHeight, b.trackHeight, t),
activeTrackColor: Color.lerp(a.activeTrackColor, b.activeTrackColor, t),
inactiveTrackColor: Color.lerp(a.inactiveTrackColor, b.inactiveTrackColor, t),
disabledActiveTrackColor: Color.lerp(a.disabledActiveTrackColor, b.disabledActiveTrackColor, t),

正在加载...
取消
保存