浏览代码

fix an error about heros

/zgh-devtools
guanghuispark 4 年前
当前提交
a9893fd0
共有 3 个文件被更改,包括 7 次插入3 次删除
  1. 3
      com.unity.uiwidgets/Runtime/cupertino/tab_scaffold.cs
  2. 5
      com.unity.uiwidgets/Runtime/widgets/heroes.cs
  3. 2
      com.unity.uiwidgets/Runtime/widgets/navigator.cs

3
com.unity.uiwidgets/Runtime/cupertino/tab_scaffold.cs


List<FocusScopeNode> scopeNodes = new List<FocusScopeNode>();
var length = widget.tabNumber - tabFocusNodes.Count;
for (int i = 0; i < length; i++) {
tabFocusNodes.Add(new FocusScopeNode(debugLabel: $"CupertinoTabScaffold Tab {i + tabFocusNodes.Count}")
scopeNodes.Add(new FocusScopeNode(debugLabel: $"CupertinoTabScaffold Tab {i + tabFocusNodes.Count}")
tabFocusNodes.AddRange(scopeNodes);
}

5
com.unity.uiwidgets/Runtime/widgets/heroes.cs


}
}
foreach (object tag in toHeroes.Keys) {
if (fromHeroes[tag] == null)
_HeroState heroState = new _HeroState();
if (!fromHeroes.TryGetValue(tag, out heroState)) {
}
}
}

2
com.unity.uiwidgets/Runtime/widgets/navigator.cs


public class NavigatorState : TickerProviderStateMixin<Navigator> {
public readonly GlobalKey<OverlayState> _overlayKey = GlobalKey<OverlayState>.key();
public List<_RouteEntry> _history = new List<_RouteEntry>();
public readonly FocusScopeNode focusScopeNode = new FocusScopeNode();
public readonly FocusScopeNode focusScopeNode = new FocusScopeNode(debugLabel: "Navigator Scope");
public bool _debugLocked = false; // used to prevent re-entrant calls to push, pop, and friends
public override void initState() {

正在加载...
取消
保存