浏览代码

fix something

/siyaoH-1.17-PlatformMessage
Shiyun Wen 4 年前
当前提交
df055547
共有 5 个文件被更改,包括 4 次插入14 次删除
  1. 2
      com.unity.uiwidgets/Runtime/rendering/RenderAnimatedOpacityMixin.mixin.gen.cs
  2. 5
      com.unity.uiwidgets/Runtime/rendering/RenderAnimatedOpacityMixin.mixin.njk
  3. 1
      com.unity.uiwidgets/Runtime/rendering/proxy_sliver.cs
  4. 7
      com.unity.uiwidgets/Runtime/rendering/sliver.cs
  5. 3
      com.unity.uiwidgets/Runtime/widgets/DiagnosticableTree.mixin.njk

2
com.unity.uiwidgets/Runtime/rendering/RenderAnimatedOpacityMixin.mixin.gen.cs


}
public void visitChildrenForSemantics(RenderObjectVisitor visitor) {
public void visitChildrenForSemantics(RenderObjectVisitor visitor) {
if (child != null && (_alpha != 0 || alwaysIncludeSemantics))
visitor(child);
}

5
com.unity.uiwidgets/Runtime/rendering/RenderAnimatedOpacityMixin.mixin.njk


}
}
public void visitChildrenForSemantics(RenderObjectVisitor visitor) {
public void visitChildrenForSemantics(RenderObjectVisitor visitor) {
if (child != null && (_alpha != 0 || alwaysIncludeSemantics))
visitor(child);
}

properties.add(new FlagProperty("alwaysIncludeSemantics", value: alwaysIncludeSemantics, ifTrue: "alwaysIncludeSemantics"));
}
}
}
{% endmacro %}
{{ RenderAnimatedOpacityMixin('RenderSliver') }}

1
com.unity.uiwidgets/Runtime/rendering/proxy_sliver.cs


bool alwaysIncludeSemantics = false
) {
D.assert(opacity != null);
D.assert(alwaysIncludeSemantics != null);
this.opacity = opacity;
this.alwaysIncludeSemantics = alwaysIncludeSemantics;
child = sliver;

7
com.unity.uiwidgets/Runtime/rendering/sliver.cs


public float? layoutOffset;
public override string ToString() {
if (layoutOffset == null)
return "layoutOffset = None";
else {
return $"layoutOffset = {layoutOffset:F}";
// 1.000
}
return layoutOffset == null ? "layoutOffset = None" : $"layoutOffset = {layoutOffset:F1}";
}
}

3
com.unity.uiwidgets/Runtime/widgets/DiagnosticableTree.mixin.njk


}
public virtual void debugFillProperties(DiagnosticPropertiesBuilder properties) { }
}
{% endmacro %}
{{ DiagnosticableTreeMixin('ChangeNotifier') }}
正在加载...
取消
保存