guanghuispark
4 年前
当前提交
db7b4d97
共有 8 个文件被更改,包括 274 次插入 和 19 次删除
-
2com.unity.uiwidgets/Runtime/rendering/sliver_persistent_header.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
-
180com.unity.uiwidgets/Runtime/widgets/sliver_persistent_header.mixin.gen.cs
-
49com.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; set; } |
|||
|
|||
float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.updateChild(float shrinkOffset, bool overlapsContent) { |
|||
updateChild(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void 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; set; } |
|||
|
|||
float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.updateChild(float shrinkOffset, bool overlapsContent) { |
|||
updateChild(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void performLayout() { |
|||
} |
|||
} |
|||
|
|||
public abstract class _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverPinnedPersistentHeader : RenderSliverPinnedPersistentHeader, _RenderSliverPersistentHeaderForWidgetsMixin { |
|||
|
|||
|
|||
public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverPinnedPersistentHeader( |
|||
RenderBox child = null, |
|||
OverScrollHeaderStretchConfiguration stretchConfiguration = null |
|||
) : base(child: child, |
|||
stretchConfiguration: stretchConfiguration) { |
|||
} |
|||
public _SliverPersistentHeaderElement _element { get; set; } |
|||
|
|||
float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.updateChild(float shrinkOffset, bool overlapsContent) { |
|||
updateChild(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void performLayout() { |
|||
} |
|||
} |
|||
|
|||
public abstract class _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverScrollingPersistentHeader : RenderSliverScrollingPersistentHeader, _RenderSliverPersistentHeaderForWidgetsMixin { |
|||
|
|||
public _SliverPersistentHeaderElement _element { get; set; } |
|||
|
|||
float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.updateChild(float shrinkOffset, bool overlapsContent) { |
|||
updateChild(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void performLayout() { |
|||
} |
|||
} |
|||
|
|||
|
|||
} |
|
|||
using Unity.UIWidgets.foundation; |
|||
using Unity.UIWidgets.rendering; |
|||
|
|||
namespace Unity.UIWidgets.widgets { |
|||
{% macro _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader(with) %} |
|||
public abstract class _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader{{with}} : {{with}}, _RenderSliverPersistentHeaderForWidgetsMixin { |
|||
|
|||
public _SliverPersistentHeaderElement _element { get; set; } |
|||
|
|||
float? minExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
float? maxExtent { |
|||
get { |
|||
return _element.widget.layoutDelegate.minExtent; |
|||
} |
|||
} |
|||
|
|||
void updateChild(float shrinkOffset, bool overlapsContent) { |
|||
D.assert(_element != null); |
|||
_element._build(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.triggerRebuild() { |
|||
triggerRebuild(); |
|||
} |
|||
|
|||
void _RenderSliverPersistentHeaderForWidgetsMixin.updateChild(float shrinkOffset, bool overlapsContent) { |
|||
updateChild(shrinkOffset, overlapsContent); |
|||
} |
|||
|
|||
void triggerRebuild() { |
|||
markNeedsLayout(); |
|||
} |
|||
|
|||
protected override void performLayout() { |
|||
} |
|||
} |
|||
{% endmacro %} |
|||
|
|||
{{ _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader('RenderSliverFloatingPersistentHeader') }} |
|||
{{ _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader('RenderSliverFloatingPinnedPersistentHeader') }} |
|||
{{ _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader('RenderSliverPinnedPersistentHeader') }} |
|||
{{ _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeader('RenderSliverScrollingPersistentHeader') }} |
|||
|
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue