浏览代码

update sliver_persistent_header mixin

/zgh-devtools
guanghuispark 4 年前
当前提交
4fd01bfe
共有 3 个文件被更改,包括 174 次插入3 次删除
  1. 4
      com.unity.uiwidgets/Runtime/widgets/sliver_persistent_header.cs
  2. 18
      com.unity.uiwidgets/Runtime/widgets/sliver_persistent_header.mixin.gen.cs
  3. 155
      com.unity.uiwidgets/Runtime/widgets/sliver_persistent_header.mixin.njk

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


abstract class _RenderSliverScrollingPersistentHeader : RenderSliverScrollingPersistentHeader {
}
class _RenderSliverScrollingPersistentHeaderForWidgets : RenderSliverScrollingPersistentHeader, _RenderSliverPersistentHeaderForWidgetsMixin {
class _RenderSliverScrollingPersistentHeaderForWidgets : _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverScrollingPersistentHeader {
public _RenderSliverScrollingPersistentHeaderForWidgets(
RenderBox child = null,
OverScrollHeaderStretchConfiguration stretchConfiguration = null

18
com.unity.uiwidgets/Runtime/widgets/sliver_persistent_header.mixin.gen.cs


}
}
public abstract class _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverFloatingPinnedPersistentHeader : RenderSliverFloatingPinnedPersistentHeader, _RenderSliverPersistentHeaderForWidgetsMixin {
public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverFloatingPinnedPersistentHeader(

snapConfiguration: snapConfiguration,
stretchConfiguration: stretchConfiguration) {
}
public _SliverPersistentHeaderElement _element { get; set; }
float? minExtent {

}
}
public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverPinnedPersistentHeader(
RenderBox child = null,
OverScrollHeaderStretchConfiguration stretchConfiguration = null

public _SliverPersistentHeaderElement _element { get; set; }
float? minExtent {

}
}
public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverScrollingPersistentHeader(
RenderBox child = null,
OverScrollHeaderStretchConfiguration stretchConfiguration = null
) : base(child: child,
stretchConfiguration: stretchConfiguration) {
}
public _SliverPersistentHeaderElement _element { get; set; }
float? minExtent {

155
com.unity.uiwidgets/Runtime/widgets/sliver_persistent_header.mixin.njk


{% 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; set; }
float? minExtent {

{% 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; 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 %}
{% 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; 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 %}
{% 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; 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('RenderSliverScrollingPersistentHeader') }}
}
正在加载...
取消
保存