浏览代码

revert some changes

/siyaoH-1.17-PlatformMessage
guanghuispark 4 年前
当前提交
61c71f50
共有 3 个文件被更改,包括 9 次插入9 次删除
  1. 6
      com.unity.uiwidgets/Runtime/widgets/editable_text.cs
  2. 8
      com.unity.uiwidgets/Runtime/widgets/fade_in_image.cs
  3. 4
      com.unity.uiwidgets/Runtime/widgets/framework.cs

6
com.unity.uiwidgets/Runtime/widgets/editable_text.cs


ToolbarOptions toolbarOptions = null,
bool unityTouchKeyboard = false
) : base(key) {
toolbarOptions ??= new ToolbarOptions(
toolbarOptions = toolbarOptions ?? new ToolbarOptions(
copy: true,
cut: true,
paste: true,

D.assert(dragStartBehavior != null);
D.assert(toolbarOptions != null);
_strutStyle = strutStyle;
inputFormatters ??= new List<TextInputFormatter>();
keyboardType ??= (maxLines == 1 ? TextInputType.text : TextInputType.multiline);
inputFormatters = inputFormatters ?? new List<TextInputFormatter>();
keyboardType = keyboardType ?? (maxLines == 1 ? TextInputType.text : TextInputType.multiline);
List<TextInputFormatter> formatters = new List<TextInputFormatter>();
if (inputFormatters == null) {
formatters = inputFormatters;

8
com.unity.uiwidgets/Runtime/widgets/fade_in_image.cs


) {
D.assert(placeholder != null);
D.assert(image != null);
fadeOutDuration ??= new TimeSpan(0, 0, 0, 0, 300);
fadeOutCurve ??= Curves.easeOut;
fadeInDuration ??= new TimeSpan(0, 0, 0, 0, 700);
fadeOutDuration = fadeOutDuration ?? new TimeSpan(0, 0, 0, 0, 300);
fadeOutCurve = fadeOutCurve ?? Curves.easeOut;
fadeInDuration = fadeInDuration ?? new TimeSpan(0, 0, 0, 0, 700);
alignment ??= Alignment.center;
alignment = alignment ?? Alignment.center;
var imageProvider = placeholderScale != null
? new ExactAssetImage(placeholder, bundle: bundle, scale: placeholderScale ?? 1.0f)
: (ImageProvider) new AssetImage(placeholder, bundle: bundle);

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


badAncestors.Insert(0, result);
try {
List<ErrorDescription> errors = new List<ErrorDescription>();
foreach (ParentDataElement<ParentData> ancestor in badAncestors)
foreach (ParentDataElement<ParentData> parentDataElement in badAncestors)
$"- {ancestor.widget} (typically placed directly inside a {ancestor.widget.debugTypicalAncestorWidgetClass} widget)"));
$"- {parentDataElement.widget} (typically placed directly inside a {parentDataElement.widget.debugTypicalAncestorWidgetClass} widget)"));
List<DiagnosticsNode> results = new List<DiagnosticsNode>();
results.Add( new ErrorSummary("Incorrect use of ParentDataWidget."));
results.Add(new ErrorDescription("The following ParentDataWidgets are providing parent data to the same RenderObject:"));

正在加载...
取消
保存