Skip to content

Commit

Permalink
更新至2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelongqy committed Aug 8, 2019
1 parent 6a6a961 commit da883f8
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
>Modify: Some styles have no more status
>Fix: Height is 0 after infinite loading is completed issues#123,issues#121
## V Next
## V 2.0.2
>Optimization: Trigger refresh and load
>Optimization: Infinite load trigger
>Support: Child is SingleChildScrollView type
2 changes: 1 addition & 1 deletion CHANGELOG_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
>修改:部分样式没有更多状态
>修复:无限加载完成后高度为0 issues#123,issues#121
## V Next
## V 2.0.2
>优化:触发刷新与加载
>优化:无限加载触发
>支持:child为SingleChildScrollView类型
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![License](https://img.shields.io/badge/license-MIT-green.svg)](/LICENSE)
[![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://stackoverflow.com/questions/tagged/flutter?sort=votes)
[![Pub](https://img.shields.io/badge/pub-v2.0.1-orange.svg)](https://pub.dartlang.org/packages/flutter_easyrefresh)
[![Pub](https://img.shields.io/badge/pub-v2.0.2-orange.svg)](https://pub.dartlang.org/packages/flutter_easyrefresh)

## [English](https://github.com/xuelongqy/flutter_easyrefresh/blob/v2/README_EN.md) | 中文

Expand Down Expand Up @@ -80,12 +80,18 @@ Demo:[下载 APK-Demo](https://github.com/xuelongqy/flutter_easyrefresh/raw/ma
```
//pub方式
dependencies:
flutter_easyrefresh: ^2.0.1
flutter_easyrefresh: ^2.0.2
//导入方式
dependencies:
flutter_easyrefresh:
path: 项目路径
//git
dependencies:
flutter_easyrefresh:
git:
url: git://github.com/xuelongqy/flutter_easyrefresh.git
```
#### 2.在布局文件中添加 EasyreFresh
```dart
Expand Down
10 changes: 8 additions & 2 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![License](https://img.shields.io/badge/license-MIT-green.svg)](/LICENSE)
[![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://stackoverflow.com/questions/tagged/flutter?sort=votes)
[![Pub](https://img.shields.io/badge/pub-v2.0.1-orange.svg)](https://pub.dartlang.org/packages/flutter_easyrefresh)
[![Pub](https://img.shields.io/badge/pub-v2.0.2-orange.svg)](https://pub.dartlang.org/packages/flutter_easyrefresh)

## English | [中文](https://github.com/xuelongqy/flutter_easyrefresh/blob/v2/README.md)

Expand Down Expand Up @@ -80,12 +80,18 @@ Demo:[Download APK-Demo](https://github.com/xuelongqy/flutter_easyrefresh/raw/
```
//pub
dependencies:
flutter_easyrefresh: ^2.0.1
flutter_easyrefresh: ^2.0.2
//import
dependencies:
flutter_easyrefresh:
path: Your path
//git
dependencies:
flutter_easyrefresh:
git:
url: git://github.com/xuelongqy/flutter_easyrefresh.git
```
#### 2.Add EasyreFresh
```dart
Expand Down
7 changes: 7 additions & 0 deletions document/cn/PROPERTY.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ class _ExampleState extends State<Example> {
| scrollController | 滚动控制器 | ScrollController | null | 可选 |
| 其他参数 | 与CustomScrollView一致 | 与CustomScrollView参数一致 | null | 可选(EasyRefresh.custom) |

# 属性表格 - EasyRefreshController
| 属性名称 | 属性描述 | 参数类型 | 默认值 | 要求 |
| callRefresh | 触发刷新 | void Function({Duration duration}) | Duration duration = const Duration(milliseconds: 300) | 可选 |
| callLoad | 触发加载 | void Function({Duration duration}) | Duration duration = const Duration(milliseconds: 300) | 可选 |
| finishRefresh | 完成刷新 | void Function({{bool success,bool noMore,}}) | success = true, noMore = false | 可选 |
| finishLoad | 完成加载 | void Function({Duration duration}) | success = true, noMore = false | 可选 |

## 属性表格 - ScrollNotificationInterceptor(用于包裹滚动冲突的Widget)
| 属性名称 | 属性描述 | 参数类型 | 默认值 | 要求 |
|---------|--------------------------|:-----:|:-----:|:-----:|
Expand Down
7 changes: 7 additions & 0 deletions document/en/PROPERTY.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ class _ExampleState extends State<Example> {
| scrollController | Scroll controller | ScrollController | null | Optional |
| Other parameters | Consistent with CustomScrollView | Consistent with CustomScrollView parameters | null | Optional(EasyRefresh.custom) |

# Props Table - EasyRefreshController
| Attribute Name | Attribute Explain | Parameter Type | Default Value | Requirement |
| callRefresh | Triggered refresh | void Function({Duration duration}) | Duration duration = const Duration(milliseconds: 300) | Optional |
| callLoad | Triggered Loading | void Function({Duration duration}) | Duration duration = const Duration(milliseconds: 300) | Optional |
| finishRefresh | Finish refresh | void Function({{bool success,bool noMore,}}) | success = true, noMore = false | Optional |
| finishLoad | Finish load | void Function({Duration duration}) | success = true, noMore = false | Optional |

## Props Table - ScrollNotificationInterceptor(Widgets for wrapping scroll conflicts)
| Attribute Name | Attribute Explain | Parameter Type | Default Value | Requirement |
|---------|--------------------------|:-----:|:-----:|:-----:|
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: EasyRefresh example.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# Read more about versioning at semver.org.
version: 2.0.1+29
version: 2.0.2+30

environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_easyrefresh
description: A widget provided to the flutter scroll component drop-down refresh and pull up load.
version: 2.0.1
version: 2.0.2
author: xuelongqy <[email protected]>
homepage: https://github.com/xuelongqy/flutter_easyrefresh

Expand Down

0 comments on commit da883f8

Please sign in to comment.