浏览代码

delete previous annotates

/siyaoH-1.17-PlatformMessage
guanghuispark 4 年前
当前提交
fe944e3f
共有 8 个文件被更改,包括 11 次插入48 次删除
  1. 4
      com.unity.uiwidgets/Runtime/widgets/app.cs
  2. 16
      com.unity.uiwidgets/Runtime/widgets/automatic_keep_alive.cs
  3. 1
      com.unity.uiwidgets/Runtime/widgets/basic.cs
  4. 6
      com.unity.uiwidgets/Runtime/widgets/color_filter.cs
  5. 25
      com.unity.uiwidgets/Runtime/widgets/disposable_build_context.cs
  6. 1
      com.unity.uiwidgets/Runtime/widgets/form.cs
  7. 2
      com.unity.uiwidgets/Runtime/widgets/icon.cs
  8. 4
      com.unity.uiwidgets/Runtime/widgets/icon_data.cs

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


"pageRouteBuilder must be specified so that the default handler " +
"will know what kind of PageRoute transition to build."
);
}
}
// [!!!]too many errors here
/*public static readonly Dictionary<LogicalKeySet, Intent> _defaultShortcuts = new Dictionary<LogicalKeySet, Intent>(){
// Activation
{new LogicalKeySet(LogicalKeyboardKey.enter), new Intent(ActivateAction.key)},

16
com.unity.uiwidgets/Runtime/widgets/automatic_keep_alive.cs


return false;
}
/*ParentDataElement _getChildElement() {
D.assert(mounted);
Element element = (Element) context;
Element childElement = null;
element.visitChildren((Element child) => { childElement = child; });
D.assert(childElement == null || childElement is ParentDataElement);
return (ParentDataElement) childElement;
}*/
ParentDataElement<KeepAliveParentDataMixin> _getChildElement() {
D.assert(mounted);
Element element = (Element) context;

D.assert(childElement == null || childElement is ParentDataElement<KeepAliveParentDataMixin>);
return (ParentDataElement<KeepAliveParentDataMixin>) childElement;
}
//void _updateParentDataOfChild(ParentDataElement childElement) {
// childElement.applyWidgetOutOfTurn((ParentDataWidget<KeepAliveParentDataMixin>) build(context));
// }
void _updateParentDataOfChild(ParentDataElement<KeepAliveParentDataMixin> childElement) {
childElement.applyWidgetOutOfTurn((ParentDataWidget<KeepAliveParentDataMixin>) build(context));
}

1
com.unity.uiwidgets/Runtime/widgets/basic.cs


}
}
//[!!!] class Flow?
/*public class Flow : MultiChildRenderObjectWidget {
/// Creates a flow layout.
///

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


namespace Unity.UIWidgets.widgets {
public class ColorFiltered : SingleChildRenderObjectWidget {
/// Creates a widget that applies a [ColorFilter] to its child.
///
/// The [colorFilter] must not be null.
/// The color filter to apply to the child of this widget.
public readonly ColorFilter colorFilter;
public override RenderObject createRenderObject(BuildContext context) => new _ColorFilterRenderObject(colorFilter);

25
com.unity.uiwidgets/Runtime/widgets/disposable_build_context.cs


namespace Unity.UIWidgets.widgets {
public class DisposableBuildContext<T> where T : State{
/// Creates an object that provides access to a [BuildContext] without leaking
/// a [State].
///
/// Creators must call [dispose] when the [State] is disposed.
///
/// The [State] must not be null, and [State.mounted] must be true.
public DisposableBuildContext(T state) {
D.assert(_state != null);
D.assert(_state.mounted, () => "A DisposableBuildContext was given a BuildContext for an Element that is not mounted.");

/// Provides safe access to the build context.
///
/// If [dispose] has been called, will return null.
///
/// Otherwise, asserts the [_state] is still mounted and returns its context.
public BuildContext context {
get {
D.assert(_debugValidate());

return _state.context;
}
}
/// Called from asserts or tests to determine whether this object is in a
/// valid state.
///
/// Always returns true, but will assert if [dispose] has not been called
/// but the state this is tracking is unmounted.
public bool _debugValidate() {
D.assert(
_state == null || _state.mounted,() =>

return true;
}
/// Marks the [BuildContext] as disposed.
///
/// Creators of this object must call [dispose] when their [Element] is
/// unmounted, i.e. when [State.dispose] is called.
void dispose() {
_state = null;
}

1
com.unity.uiwidgets/Runtime/widgets/form.cs


get { return _errorText != null; }
}
//[!!!] call?
/*public bool isValid {
get {
return widget.validator?.call(_value) == null;

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


public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
properties.add(new IconDataProperty("icon", icon, ifNull: "<empty>", showName: false));
properties.add(new FloatProperty("size", size, defaultValue: null));//[!!!] DoubleProperty -> FloatProperty
properties.add(new FloatProperty("size", size, defaultValue: null));
properties.add(new ColorProperty("color", color, defaultValue: null));
}
}

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


}
}
/// [DiagnosticsProperty] that has an [IconData] as value.
/// Create a diagnostics property for [IconData].
///
/// The [showName], [style], and [level] arguments must not be null.
public IconDataProperty(
String name,
IconData value,

正在加载...
取消
保存