浏览代码

fix some errors

/siyaoH-1.17-PlatformMessage
guanghuispark 4 年前
当前提交
7b68b84b
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 2
      com.unity.uiwidgets/Runtime/cupertino/dialog.cs
  2. 4
      com.unity.uiwidgets/Runtime/widgets/orientation_builder.cs
  3. 2
      com.unity.uiwidgets/Runtime/widgets/page_view.cs

2
com.unity.uiwidgets/Runtime/cupertino/dialog.cs


textScaleFactor: Mathf.Max(textScaleFactor, 1.0f)
),
child: new LayoutBuilder(
builder: (BuildContext _context, BoxConstraints constraints) => {
builder: (BuildContext _context, Constraints constraints) => {
return new Center(
child: new Container(
margin: EdgeInsets.symmetric(vertical: CupertinoDialogUtils._kEdgePadding),

4
com.unity.uiwidgets/Runtime/widgets/orientation_builder.cs


public readonly OrientationWidgetBuilder builder;
Widget _buildWithConstraints(BuildContext context, BoxConstraints constraints) {
Widget _buildWithConstraints(BuildContext context, Constraints constraints) {
constraints.maxWidth > constraints.maxHeight ? Orientation.landscape : Orientation.portrait;
((BoxConstraints)constraints).maxWidth > ((BoxConstraints)constraints).maxHeight ? Orientation.landscape : Orientation.portrait;
return builder(context, orientation);
}

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


slivers: new List<Widget> {
new SliverFillViewport(
viewportFraction: widget.controller.viewportFraction,
del: widget.childrenDelegate
_delegate: widget.childrenDelegate
)
}
);

正在加载...
取消
保存