Skip to content

Commit 56cef14

Browse files
authored
Update README.md
1 parent 8fcccec commit 56cef14

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ paging 是针对flutter提供的分页加载库,思想和实现源自android j
66

77
具体参见demo,和android paging不一样的地方在于针对flutter提供了PageBuilder控件
88
```
9-
// 创建PageListLiveData
9+
// 创建LiveData<PageList>
1010
MyFactory factory = MyFactory();
1111
var config = Config(pageSize: 5, enablePlaceholders: false, initialLoadSizeHint: 10);
12-
mPageList = PagedListBuilder<int, Bean>(config, factory).create();
12+
mPageList = LivePagedListBuilder<int, Bean>(config, factory).create();
1313
1414
// 使用PageBuilder 包裹实现Listview
1515
child: PageBuilder<Bean>(
@@ -32,9 +32,11 @@ mPageList = PagedListBuilder<int, Bean>(config, factory).create();
3232
)
3333
```
3434
## 如何依赖
35-
暂时请依赖github
35+
请依赖github
3636
```
3737
paging:
38-
git: https://github.com/frasker/paging
38+
git:
39+
url: https://github.com/frasker/paging
40+
ref: 1.0.0-alpha
3941
```
4042

0 commit comments

Comments
 (0)