浏览代码

Modify page view a bit for implementation of swiper.

/main
Yuncong Zhang 5 年前
当前提交
f2dac2ac
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 2
      Runtime/widgets/page_view.cs
  2. 8
      Runtime/widgets/scroll_position.cs

2
Runtime/widgets/page_view.cs


public readonly float viewportFraction;
public float page {
public virtual float page {
get {
D.assert(this.positions.isNotEmpty(),
() => "PageController.page cannot be accessed before a PageView is built with it."

8
Runtime/widgets/scroll_position.cs


float? _maxScrollExtent;
public bool hasMinScrollExtent {
get { return this._minScrollExtent != null; }
}
public bool hasMaxScrollExtent {
get { return this._maxScrollExtent != null; }
}
public override float pixels {
get {
D.assert(this._pixels != null);

正在加载...
取消
保存