浏览代码

update

/main
fzhangtj 6 年前
当前提交
3db80bfc
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2
      Runtime/widgets/scroll_position.cs
  2. 4
      Runtime/widgets/sliver.cs

2
Runtime/widgets/scroll_position.cs


internal double? _pixels;
public double viewportDimension {
get { return this._viewportDimension??0.0; }
get { return this._viewportDimension.Value; }
}
double? _viewportDimension;

4
Runtime/widgets/sliver.cs


public override RenderObject createRenderObject(BuildContext context) {
SliverMultiBoxAdaptorElement element = (SliverMultiBoxAdaptorElement)context;
return new RenderSliverFillViewport(childManager: element, viewportFraction: viewportFraction);
return new RenderSliverFillViewport(childManager: element, viewportFraction: this.viewportFraction);
((RenderSliverFillViewport)renderObject).viewportFraction = viewportFraction;
((RenderSliverFillViewport)renderObject).viewportFraction = this.viewportFraction;
}
}

正在加载...
取消
保存