浏览代码

Merge branches 'kgdev' and 'master' of github.com:UnityTech/UIWidgets into kgdev

/main
kg 6 年前
当前提交
28eee616
共有 6 个文件被更改,包括 1 次插入24 次删除
  1. 5
      Runtime/flow/instrumentation.cs
  2. 11
      Runtime/material/app_bar.cs
  3. 3
      Runtime/material/back_button.cs
  4. 2
      Runtime/material/flexible_space_bar.cs
  5. 2
      Runtime/material/switch.cs
  6. 2
      Runtime/rendering/table.cs

5
Runtime/flow/instrumentation.cs


public class Stopwatch {
float _start;
float[] _laps;
readonly float[] _laps;
bool _cacheDirty;
public Stopwatch() {
this._start = InstrumentationUtils.now();

for (int i = 0; i < this._laps.Length; i++) {
this._laps[i] = delta;
}
this._cacheDirty = true;
}
public void start() {

11
Runtime/material/app_bar.cs


default:
return false;
}
return null;
}
public override State createState() {

Widget title = this.widget.title;
if (title != null) {
bool namesRoute = false;
switch (Application.platform) {
case RuntimePlatform.IPhonePlayer:
break;
default:
namesRoute = true;
break;
}
title = new DefaultTextStyle(
style: centerStyle,
softWrap: false,

3
Runtime/material/back_button.cs


default:
return Icons.arrow_back;
}
D.assert(false);
return null;
}
public override Widget build(BuildContext context) {

2
Runtime/material/flexible_space_bar.cs


default:
return false;
}
return null;
}

2
Runtime/material/switch.cs


switch (this.widget.materialTapTargetSize ?? theme.materialTapTargetSize) {
case MaterialTapTargetSize.padded:
return new Size(Switch._kSwitchWidth, Switch._kSwitchHeight);
break;
break;
}
D.assert(false);
return null;

2
Runtime/rendering/table.cs


}
}
D.assert(!widths.Any((float value) => { return value == null; }));
float maxWidthConstraint = constraints.maxWidth;
float minWidthConstraint = constraints.minWidth;

this._columnLefts = positions;
tableWidth = positions.Last() + widths.Last();
D.assert(!positions.Any((float value) => { return value == null; }));
this._rowTops.Clear();
this._baselineDistance = null;

正在加载...
取消
保存