Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update Readme.md #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ Support `ListView` and `SliverList`

[中文构思思路和使用说明可以看简书](https://www.jianshu.com/p/abfd6f525316)

## screenshot
## Screenshot

![img](https://github.com/CaiJingLong/some_asset/blob/master/loadmore1.gif)

## whole example
## Whole example

show https://github.com/CaiJingLong/flutter_listview_loadmore

## install
## Install

in `pubspec.yaml`

Expand All @@ -26,13 +26,13 @@ dependencies:
loadmore: ^2.0.1
```

import in dartfile:
Import in dartfile:

```dart
import 'package:loadmore/loadmore.dart';
```

use in build:
Use in build:

```dart
@override
Expand Down Expand Up @@ -68,15 +68,15 @@ use in build:
}
```

properties use:
Properties use:

```properties
child: Widget ,required , support ListView ListView.builder ListView.separated, other is not support.
onLoadMore:required A Function , `typedef Future<bool> FutureCallBack();` , reture true is success and status delay,return false or null ,then the status will change to fail.
isFinish: bool, optional, if true, then the status will change to finish ,default is false
child: Widget, required , support ListView ListView.builder ListView.separated, other is not support.
onLoadMore:required A Function, `typedef Future<bool> FutureCallBack();`, reture true is success and status delay,return false or null ,then the status will change to fail.
isFinish: bool, optional, if true, then the status will change to finish, default is false
delegate: LoadMoreDelegate,optional, see the LoadMoreDelegate class,default is DefaultLoadMoreDelegate
textBuilder: optional, the result will show in loading view ,if you use default delegate. default is DefaultLoadMoreText.chinese,
whenEmptyLoad: bool ,optional, default is true, when [whenEmptyLoad] is true, and when listView children length is 0,or the itemCount is 0,not build loadMoreWidget.
whenEmptyLoad: bool, optional, default is true, when [whenEmptyLoad] is true, and when listView children length is 0, or the itemCount is 0, not build loadMoreWidget.
```

```dart
Expand Down