浏览代码

fix

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
e6cd33b0
共有 4 个文件被更改,包括 11 次插入13 次删除
  1. 13
      com.unity.uiwidgets/Runtime/material/about.cs
  2. 2
      com.unity.uiwidgets/Runtime/material/date_picker.cs
  3. 8
      com.unity.uiwidgets/Runtime/material/dialog.cs
  4. 1
      com.unity.uiwidgets/Runtime/material/flat_button.cs

13
com.unity.uiwidgets/Runtime/material/about.cs


using Unity.UIWidgets.scheduler2;
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;
using DialogUtils = Unity.UIWidgets.material.DialogUtils;
using TextStyle = Unity.UIWidgets.painting.TextStyle;
namespace Unity.UIWidgets.material {

) {
D.assert(context != null);
D.assert(useRootNavigator != null);
DialogUtils.showDialog<object>(
showDialog<object>(
builder: (BuildContext context) => {
builder: (BuildContext buildContext) => {
return new AboutDialog(
applicationName: applicationName,
applicationVersion: applicationVersion,

D.assert(context != null);
D.assert(useRootNavigator != null);
Navigator.of(context, rootNavigator: useRootNavigator).push(new MaterialPageRoute(
builder: (BuildContext context) => new LicensePage(
builder: (BuildContext buildContext) => new LicensePage(
applicationName: applicationName,
applicationVersion: applicationVersion,
applicationIcon: applicationIcon,

),
new FlatButton(
child: new Text(MaterialLocalizations.of(context).closeButtonLabel),
onPressed: () => { Navigator.pop(context); }
onPressed: () => { Navigator.pop<object>(context); }
)
},
scrollable: true

// or text direction.
body: new Localizations(
locale: new Locale("en", "US"),
context: context,
// context: context,
child: new DefaultTextStyle(
style: Theme.of(context).textTheme.caption,
child: new SafeArea(

// can provide an explicit applicationName to the widgets defined in this
// file, instead of relying on the default.
Title ancestorTitle = context.findAncestorWidgetOfExactType<Title>();
return ancestorTitle?.title ?? Platform.resolvedExecutable.split(Platform.pathSeparator).last;
return ancestorTitle?.title ;//?? Platform.resolvedExecutable.split(Platform.pathSeparator).last;
}
internal static string _defaultApplicationVersion(BuildContext context) {

2
com.unity.uiwidgets/Runtime/material/date_picker.cs


);
}
return DialogUtils.showDialog(
return material_.showDialog<object>(
context: context,
builder: (BuildContext _context) => { return builder == null ? child : builder(_context, child); }
);

8
com.unity.uiwidgets/Runtime/material/dialog.cs


if (actions != null) {
actionsWidget = new Padding(
padding: actionsPadding,
padding: (EdgeInsets)actionsPadding,
buttonPadding: buttonPadding,
overflowDirection: actionsOverflowDirection,
overflowButtonSpacing: actionsOverflowButtonSpacing,
// buttonPadding: buttonPadding,
// overflowDirection: actionsOverflowDirection,
// overflowButtonSpacing: actionsOverflowButtonSpacing,
children: actions
)
);

1
com.unity.uiwidgets/Runtime/material/flat_button.cs


using Unity.UIWidgets.service;
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;
using Brightness = Unity.UIWidgets.service.Brightness;
namespace Unity.UIWidgets.material {
public class FlatButton : MaterialButton {

正在加载...
取消
保存