浏览代码

fix

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

18
com.unity.uiwidgets/Runtime/material/chip.cs


return result.addWithRawTransform(
transform: MatrixUtils.forceToPoint(offset),
position: position,
hitTest: (BoxHitTestResult result, Offset position) => {
D.assert(position == offset);
return child.hitTest(result, position: offset);
hitTest: (BoxHitTestResult _result, Offset _position) => {
D.assert(_position == offset);
return child.hitTest(_result, position: offset);
}
);
}

return result.addWithRawTransform(
transform: MatrixUtils.forceToPoint(center),
position: position,
hitTest: (BoxHitTestResult result, Offset position) => {
D.assert(position == center);
return hitTestChild.hitTest(result, position: center);
hitTest: (BoxHitTestResult _result, Offset _position) => {
D.assert(_position == center);
return hitTestChild.hitTest(_result, position: center);
}
);
}

break;
case TextDirection.ltr:
float startLeft = left;
if ((theme.showCheckmark ?? false) || (theme.showAvatar?? false)) {
if ((theme.showCheckmark ?? false) || (theme.showAvatar ?? false)) {
avatarOffset = centerLayout(avatarSize, startLeft - _boxSize(avatar).width + avatarSize.width);
startLeft += avatarSize.width;
}

labelOffset = labelOffset +
new Offset(
0.0f,
((labelSize.height - theme.labelPadding.vertical) - _boxSize(label).height) /2.0f
((labelSize.height - theme.labelPadding.vertical) - _boxSize(label).height) / 2.0f
);
_boxParentData(avatar).offset = theme.padding.topLeft + avatarOffset;
_boxParentData(label).offset =

Size chipSize = null,
TextDirection? textDirection = null
) {
bool tapIsOnDeleteIcon;
bool tapIsOnDeleteIcon = false;
if (!hasDeleteButton) {
tapIsOnDeleteIcon = false;
}

正在加载...
取消
保存