浏览代码

Merge branch 'shiyun/skia' of https://github.com/Unity-Technologies/com.unity.uiwidgets into shiyun/skia

/siyaoH-1.17-PlatformMessage
Shiyun Wen 4 年前
当前提交
07b2a255
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 10
      com.unity.uiwidgets/Runtime/widgets/safe_area.cs

10
com.unity.uiwidgets/Runtime/widgets/safe_area.cs


bool right = true,
bool bottom = true,
EdgeInsets mininum = null,
Widget child = null
Widget child = null,
bool maintainBottomViewPadding = false
) : base(key: key) {
D.assert(child != null);
this.left = left;

minimum = mininum ?? EdgeInsets.zero;
this.child = child;
this.maintainBottomViewPadding = maintainBottomViewPadding;
}
public readonly bool left;

public readonly EdgeInsets minimum;
public readonly Widget child;
public readonly bool maintainBottomViewPadding;
EdgeInsets padding = MediaQuery.of(context).padding;
MediaQueryData data = MediaQuery.of(context);
EdgeInsets padding = data.padding;
if (data.padding.bottom == 0.0 && data.viewInsets.bottom != 0.0 && maintainBottomViewPadding)
padding = padding.copyWith(bottom: data.viewPadding.bottom);
return new Padding(
padding: EdgeInsets.only(
left: Mathf.Max(left ? padding.left : 0.0f, minimum.left),

正在加载...
取消
保存