浏览代码

fix

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

10
com.unity.uiwidgets/Runtime/material/button.cs


}
public override Widget build(BuildContext context) {
Color effectiveTextColor = MaterialStateProperty.resolveAs<Color>(widget.textStyle?.color, _states);
ShapeBorder effectiveShape = MaterialStateProperty.resolveAs<ShapeBorder>(widget.shape, _states);
Color effectiveTextColor = MaterialStateProperty<Color>.resolveAs<Color>(widget.textStyle?.color, _states);
ShapeBorder effectiveShape = MaterialStateProperty<Color>.resolveAs<ShapeBorder>(widget.shape, _states);
Offset densityAdjustment = widget.visualDensity.baseSizeAdjustment;
BoxConstraints effectiveConstraints = widget.visualDensity.effectiveConstraints(widget.constraints);
EdgeInsets padding = widget.padding.add(

return result.addWithRawTransform(
transform: MatrixUtils.forceToPoint(center),
position: center,
hitTest: (BoxHitTestResult result, Offset position) => {
D.assert(position == center);
return child.hitTest(result, position: center);
hitTest: (BoxHitTestResult boxHitTest, Offset offsetPosition) => {
D.assert(offsetPosition == center);
return child.hitTest(boxHitTest, position: center);
}
);
}

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


public readonly float vertical;
Offset baseSizeAdjustment {
public Offset baseSizeAdjustment {
get {
float interval = 4.0f;

);
}
BoxConstraints effectiveConstraints(BoxConstraints constraints) {
public BoxConstraints effectiveConstraints(BoxConstraints constraints) {
D.assert(constraints != null && constraints.debugAssertIsValid());
return constraints.copyWith(
minWidth: (constraints.minWidth + baseSizeAdjustment.dx).clamp(0.0f, float.PositiveInfinity),

正在加载...
取消
保存