浏览代码

type

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
ee199111
共有 3 个文件被更改,包括 44 次插入22 次删除
  1. 6
      com.unity.uiwidgets/Runtime/widgets/basic.cs
  2. 57
      com.unity.uiwidgets/Runtime/widgets/sliver.cs
  3. 3
      com.unity.uiwidgets/Runtime/widgets/table.cs

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


}
}
public override Type debugTypicalAncestorWidgetClass { get => typeof(Stack); }
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
properties.add(new FloatProperty("left", left, defaultValue: null));

}
}
}
public override Type debugTypicalAncestorWidgetClass { get => typeof(Flex); }
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);

}
}
}
public override Type debugTypicalAncestorWidgetClass { get => typeof(CustomMultiChildLayout); }
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);

57
com.unity.uiwidgets/Runtime/widgets/sliver.cs


}
}
public abstract class SliverMultiBoxAdaptorWidget : RenderObjectWidget {
public abstract class SliverWithKeepAliveWidget : RenderObjectWidget {
/// Initializes fields for subclasses.
public SliverWithKeepAliveWidget(Key key = null) : base(key: key) {
}
public abstract override RenderObject createRenderObject(BuildContext context);
}
public abstract class SliverMultiBoxAdaptorWidget : SliverWithKeepAliveWidget {
protected SliverMultiBoxAdaptorWidget(
Key key = null,
SliverChildDelegate del = null

float trailingScrollOffset
) {
return base.estimateMaxScrollOffset(
constraints,
firstIndex,
lastIndex,
leadingScrollOffset,
trailingScrollOffset
) ?? gridDelegate.getLayout(constraints)
.computeMaxScrollOffset(del.estimatedChildCount ?? 0);
constraints,
firstIndex,
lastIndex,
leadingScrollOffset,
trailingScrollOffset
) ?? gridDelegate.getLayout(constraints)
.computeMaxScrollOffset(del.estimatedChildCount ?? 0);
}
}

_childElements.Remove(index);
}
}
// processElement may modify the Map - need to do a .toList() here.
_childElements.Keys.ToList().ForEach(action: processElement);
if (_didUnderflow) {

}
return widget.estimateMaxScrollOffset(
constraints,
firstIndex,
lastIndex,
leadingScrollOffset,
trailingScrollOffset
) ?? _extrapolateMaxScrollOffset(
firstIndex,
lastIndex,
leadingScrollOffset,
trailingScrollOffset,
childCount.Value
);
constraints,
firstIndex,
lastIndex,
leadingScrollOffset,
trailingScrollOffset
) ?? _extrapolateMaxScrollOffset(
firstIndex,
lastIndex,
leadingScrollOffset,
trailingScrollOffset,
childCount.Value
);
}
public int? childCount {

}
}
public class KeepAlive : ParentDataWidget<SliverMultiBoxAdaptorWidget> {
public class KeepAlive : ParentDataWidget<SliverWithKeepAliveWidget> {
public KeepAlive(
Key key = null,
bool keepAlive = true,

return keepAlive;
}
public override Type debugTypicalAncestorWidgetClass {
get => typeof(SliverWithKeepAliveWidget);
}
}
}

3
com.unity.uiwidgets/Runtime/widgets/table.cs


using System;
using System.Collections.Generic;
using System.Linq;
using Unity.UIWidgets.foundation;

}
}
}
public override Type debugTypicalAncestorWidgetClass { get => typeof(Table); }
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);

正在加载...
取消
保存