浏览代码
Merge pull request #74 from Unity-Technologies/zgh/cupertino/fix
Merge pull request #74 from Unity-Technologies/zgh/cupertino/fix
Zgh/cupertino/fix/siyaoH-1.17-PlatformMessage
GitHub
4 年前
当前提交
ffbf463a
共有 12 个文件被更改,包括 512 次插入 和 42 次删除
-
8Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/demo/cupertino/cupertino_navigation_demo.cs
-
1com.unity.uiwidgets/Runtime/painting/image_resolution.cs
-
5com.unity.uiwidgets/Runtime/rendering/list_wheel_viewport.cs
-
4com.unity.uiwidgets/Runtime/rendering/sliver_persistent_header.cs
-
2com.unity.uiwidgets/Runtime/services/text_input.cs
-
7com.unity.uiwidgets/Runtime/widgets/DiagnosticableTree.mixin.gen.cs
-
4com.unity.uiwidgets/Runtime/widgets/DiagnosticableTree.mixin.njk
-
3com.unity.uiwidgets/Runtime/widgets/DirectionalFocusTraversalPolicy.mixin.gen.cs
-
5com.unity.uiwidgets/Runtime/widgets/DirectionalFocusTraversalPolicy.mixin.njk
-
43com.unity.uiwidgets/Runtime/widgets/sliver_persistent_header.cs
-
232com.unity.uiwidgets/Runtime/widgets/sliver_persistent_header.mixin.gen.cs
-
240com.unity.uiwidgets/Runtime/widgets/sliver_persistent_header.mixin.njk
|
|||
using Unity.UIWidgets.foundation; |
|||
using Unity.UIWidgets.rendering; |
|||
|
|||
namespace Unity.UIWidgets.widgets { |
|||
|
|||
public abstract class _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverFloatingPersistentHeader : RenderSliverFloatingPersistentHeader, _RenderSliverPersistentHeaderForWidgetsMixin { |
|||
|
|||
public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverFloatingPersistentHeader( |
|||
RenderBox child = null, |
|||
FloatingHeaderSnapConfiguration snapConfiguration = null, |
|||
OverScrollHeaderStretchConfiguration stretchConfiguration = null |
|||
) : base( |
|||
child: child, |
|||
stretchConfiguration: stretchConfiguration) { |
|||
_snapConfiguration = snapConfiguration; |
|||
} |
|||
|
|||
public _SliverPersistentHeaderElement _element { |
|||
get { |
|||
return sliver_persistent_header_utils._element; |
|||
} |
|||
set { |
|||
if (value == sliver_persistent_header_utils._element) { |
|||
return; |
|||
} |
|||
|
|||
sliver_persistent_header_utils._element = value; |
|||
} |
|||
|
|||
} |
|||
|
|||
public override float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
public override float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
protected override void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void performLayout() { |
|||
base.performLayout(); |
|||
} |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
public abstract class _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverFloatingPinnedPersistentHeader : RenderSliverFloatingPinnedPersistentHeader, _RenderSliverPersistentHeaderForWidgetsMixin { |
|||
|
|||
public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverFloatingPinnedPersistentHeader( |
|||
RenderBox child = null, |
|||
FloatingHeaderSnapConfiguration snapConfiguration = null, |
|||
OverScrollHeaderStretchConfiguration stretchConfiguration = null |
|||
) : base(child: child, |
|||
snapConfiguration: snapConfiguration, |
|||
stretchConfiguration: stretchConfiguration) { |
|||
} |
|||
|
|||
public _SliverPersistentHeaderElement _element { |
|||
get { |
|||
return sliver_persistent_header_utils._element; |
|||
} |
|||
set { |
|||
if (value == sliver_persistent_header_utils._element) { |
|||
return; |
|||
} |
|||
|
|||
sliver_persistent_header_utils._element = value; |
|||
} |
|||
|
|||
} |
|||
|
|||
public override float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
public override float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
protected override void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void performLayout() { |
|||
base.performLayout(); |
|||
} |
|||
} |
|||
|
|||
|
|||
|
|||
public abstract class _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverPinnedPersistentHeader : RenderSliverPinnedPersistentHeader, _RenderSliverPersistentHeaderForWidgetsMixin { |
|||
|
|||
public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverPinnedPersistentHeader( |
|||
RenderBox child = null, |
|||
OverScrollHeaderStretchConfiguration stretchConfiguration = null |
|||
) : base(child: child, |
|||
stretchConfiguration: stretchConfiguration) { |
|||
} |
|||
|
|||
public _SliverPersistentHeaderElement _element { |
|||
get { |
|||
return sliver_persistent_header_utils._element; |
|||
} |
|||
set { |
|||
if (value == sliver_persistent_header_utils._element) { |
|||
return; |
|||
} |
|||
|
|||
sliver_persistent_header_utils._element = value; |
|||
} |
|||
|
|||
} |
|||
|
|||
public override float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
public override float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
protected override void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void performLayout() { |
|||
base.performLayout(); |
|||
} |
|||
} |
|||
|
|||
|
|||
|
|||
public abstract class _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverScrollingPersistentHeader : RenderSliverScrollingPersistentHeader, _RenderSliverPersistentHeaderForWidgetsMixin { |
|||
|
|||
public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverScrollingPersistentHeader( |
|||
RenderBox child = null, |
|||
OverScrollHeaderStretchConfiguration stretchConfiguration = null |
|||
) : base(child: child, |
|||
stretchConfiguration: stretchConfiguration) { |
|||
} |
|||
|
|||
public _SliverPersistentHeaderElement _element { |
|||
get { |
|||
return sliver_persistent_header_utils._element; |
|||
} |
|||
set { |
|||
if (value == sliver_persistent_header_utils._element) { |
|||
return; |
|||
} |
|||
|
|||
sliver_persistent_header_utils._element = value; |
|||
} |
|||
|
|||
} |
|||
|
|||
public override float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
public override float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
protected override void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void performLayout() { |
|||
base.performLayout(); |
|||
} |
|||
} |
|||
|
|||
|
|||
} |
|
|||
using Unity.UIWidgets.foundation; |
|||
using Unity.UIWidgets.rendering; |
|||
|
|||
namespace Unity.UIWidgets.widgets { |
|||
{% macro _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader(with) %} |
|||
public abstract class _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader{{with}} : {{with}}, _RenderSliverPersistentHeaderForWidgetsMixin { |
|||
|
|||
public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverFloatingPersistentHeader( |
|||
RenderBox child = null, |
|||
FloatingHeaderSnapConfiguration snapConfiguration = null, |
|||
OverScrollHeaderStretchConfiguration stretchConfiguration = null |
|||
) : base( |
|||
child: child, |
|||
stretchConfiguration: stretchConfiguration) { |
|||
_snapConfiguration = snapConfiguration; |
|||
} |
|||
|
|||
public _SliverPersistentHeaderElement _element { |
|||
get { |
|||
return sliver_persistent_header_utils._element; |
|||
} |
|||
set { |
|||
if (value == sliver_persistent_header_utils._element) { |
|||
return; |
|||
} |
|||
|
|||
sliver_persistent_header_utils._element = value; |
|||
} |
|||
|
|||
} |
|||
|
|||
public override float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
public override float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
protected override void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void performLayout() { |
|||
base.performLayout(); |
|||
} |
|||
} |
|||
{% endmacro %} |
|||
|
|||
{{ _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader('RenderSliverFloatingPersistentHeader') }} |
|||
|
|||
{% macro _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader(with) %} |
|||
public abstract class _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader{{with}} : {{with}}, _RenderSliverPersistentHeaderForWidgetsMixin { |
|||
|
|||
public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverFloatingPinnedPersistentHeader( |
|||
RenderBox child = null, |
|||
FloatingHeaderSnapConfiguration snapConfiguration = null, |
|||
OverScrollHeaderStretchConfiguration stretchConfiguration = null |
|||
) : base(child: child, |
|||
snapConfiguration: snapConfiguration, |
|||
stretchConfiguration: stretchConfiguration) { |
|||
} |
|||
|
|||
public _SliverPersistentHeaderElement _element { |
|||
get { |
|||
return sliver_persistent_header_utils._element; |
|||
} |
|||
set { |
|||
if (value == sliver_persistent_header_utils._element) { |
|||
return; |
|||
} |
|||
|
|||
sliver_persistent_header_utils._element = value; |
|||
} |
|||
|
|||
} |
|||
|
|||
public override float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
public override float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
protected override void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void performLayout() { |
|||
base.performLayout(); |
|||
} |
|||
} |
|||
{% endmacro %} |
|||
|
|||
|
|||
|
|||
{{ _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader('RenderSliverFloatingPinnedPersistentHeader') }} |
|||
|
|||
{% macro _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader(with) %} |
|||
public abstract class _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader{{with}} : {{with}}, _RenderSliverPersistentHeaderForWidgetsMixin { |
|||
|
|||
public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverPinnedPersistentHeader( |
|||
RenderBox child = null, |
|||
OverScrollHeaderStretchConfiguration stretchConfiguration = null |
|||
) : base(child: child, |
|||
stretchConfiguration: stretchConfiguration) { |
|||
} |
|||
|
|||
public _SliverPersistentHeaderElement _element { |
|||
get { |
|||
return sliver_persistent_header_utils._element; |
|||
} |
|||
set { |
|||
if (value == sliver_persistent_header_utils._element) { |
|||
return; |
|||
} |
|||
|
|||
sliver_persistent_header_utils._element = value; |
|||
} |
|||
|
|||
} |
|||
|
|||
public override float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
public override float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
protected override void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void performLayout() { |
|||
base.performLayout(); |
|||
} |
|||
} |
|||
{% endmacro %} |
|||
|
|||
{{ _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader('RenderSliverPinnedPersistentHeader') }} |
|||
|
|||
{% macro _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader(with) %} |
|||
public abstract class _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader{{with}} : {{with}}, _RenderSliverPersistentHeaderForWidgetsMixin { |
|||
|
|||
public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverScrollingPersistentHeader( |
|||
RenderBox child = null, |
|||
OverScrollHeaderStretchConfiguration stretchConfiguration = null |
|||
) : base(child: child, |
|||
stretchConfiguration: stretchConfiguration) { |
|||
} |
|||
|
|||
public _SliverPersistentHeaderElement _element { |
|||
get { |
|||
return sliver_persistent_header_utils._element; |
|||
} |
|||
set { |
|||
if (value == sliver_persistent_header_utils._element) { |
|||
return; |
|||
} |
|||
|
|||
sliver_persistent_header_utils._element = value; |
|||
} |
|||
|
|||
} |
|||
|
|||
public override float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
public override float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
protected override void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void performLayout() { |
|||
base.performLayout(); |
|||
} |
|||
} |
|||
{% endmacro %} |
|||
|
|||
{{ _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader('RenderSliverScrollingPersistentHeader') }} |
|||
|
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue