Skip to content

Commit 2f47e66

Browse files
committed
Merge branch 'develop'
2 parents ef3b9c2 + 2d8f3cd commit 2f47e66

44 files changed

Lines changed: 63517 additions & 175 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [2.0.0] - 2020.09.28
2+
3+
* add custom animation style
4+
* add toast postion option [#14](https://github.com/huangjianke/flutter_easyloading/issues/14) [#49](https://github.com/huangjianke/flutter_easyloading/issues/49)
5+
* fixed bugs
6+
17
## [1.3.0] - 2020.09.24
28

39
* fixed bugs

README-zh_CN.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@
66

77
<img src="https://raw.githubusercontent.com/huangjianke/flutter_easyloading/master/images/gif01.gif" width=200 height=429/> <img src="https://raw.githubusercontent.com/huangjianke/flutter_easyloading/master/images/gif02.gif" width=200 height=429/> <img src="https://raw.githubusercontent.com/huangjianke/flutter_easyloading/master/images/gif03.gif" width=200 height=429/> <img src="https://raw.githubusercontent.com/huangjianke/flutter_easyloading/master/images/gif04.gif" width=200 height=429/>
88

9+
## 在线预览
10+
11+
👉 [https://huangjianke.github.io/flutter_easyloading](https://huangjianke.github.io/flutter_easyloading/#/)
12+
913
## 安装
1014

1115
将以下代码添加到您项目中的 `pubspec.yaml` 文件:
1216

1317
```yaml
1418
dependencies:
15-
flutter_easyloading: ^1.3.0
19+
flutter_easyloading: ^2.0.0
1620
```
1721
1822
## 导入
@@ -74,6 +78,15 @@ EasyLoadingIndicatorType indicatorType;
7478
/// loading的遮罩类型, 默认[EasyLoadingMaskType.none].
7579
EasyLoadingMaskType maskType;
7680
81+
/// toast的位置, 默认 [EasyLoadingToastPosition.center].
82+
EasyLoadingToastPosition toastPosition;
83+
84+
/// 动画类型, 默认 [EasyLoadingAnimationStyle.opacity].
85+
EasyLoadingAnimationStyle animationStyle;
86+
87+
/// 自定义动画, 默认 null.
88+
EasyLoadingAnimation customAnimation;
89+
7790
/// 文本的对齐方式 , 默认[TextAlign.center].
7891
TextAlign textAlign;
7992
@@ -104,6 +117,9 @@ double lineWidth;
104117
/// [showSuccess] [showError] [showInfo]的展示时间, 默认2000ms.
105118
Duration displayDuration;
106119
120+
/// 动画时间, 默认200ms.
121+
Duration animationDuration;
122+
107123
/// 文本的颜色, 仅对[EasyLoadingStyle.custom]有效.
108124
Color textColor;
109125
@@ -157,13 +173,17 @@ EasyLoading.instance
157173
..userInteractions = true;
158174
```
159175

160-
更多的指示器类型可查看 [flutter_spinkit showcase](https://github.com/jogboms/flutter_spinkit#-showcase)
176+
更多的指示器类型可查看 👉 [flutter_spinkit showcase](https://github.com/jogboms/flutter_spinkit#-showcase)
177+
178+
## 自定义动画
179+
180+
例子: 👉 [Custom Animation](https://github.com/huangjianke/flutter_easyloading/blob/develop/example/lib/custom_animation.dart)
161181

162182
## 待完成
163183

164184
- [x] 新增进度条指示器
165185

166-
- [ ] 新增自定义动画
186+
- [x] 新增自定义动画
167187

168188
## 更新日志
169189

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ English | [简体中文](./README-zh_CN.md)
66

77
<img src="https://raw.githubusercontent.com/huangjianke/flutter_easyloading/master/images/gif01.gif" width=200 height=429/> <img src="https://raw.githubusercontent.com/huangjianke/flutter_easyloading/master/images/gif02.gif" width=200 height=429/> <img src="https://raw.githubusercontent.com/huangjianke/flutter_easyloading/master/images/gif03.gif" width=200 height=429/> <img src="https://raw.githubusercontent.com/huangjianke/flutter_easyloading/master/images/gif04.gif" width=200 height=429/>
88

9+
## Live Preview
10+
11+
👉 [https://huangjianke.github.io/flutter_easyloading](https://huangjianke.github.io/flutter_easyloading/#/)
12+
913
## Installing
1014

1115
Add this to your package's `pubspec.yaml` file:
1216

1317
```yaml
1418
dependencies:
15-
flutter_easyloading: ^1.3.0
19+
flutter_easyloading: ^2.0.0
1620
```
1721
1822
## Import
@@ -75,6 +79,15 @@ EasyLoadingIndicatorType indicatorType;
7579
/// loading mask type, default [EasyLoadingMaskType.none].
7680
EasyLoadingMaskType maskType;
7781
82+
/// toast position, default [EasyLoadingToastPosition.center].
83+
EasyLoadingToastPosition toastPosition;
84+
85+
/// loading animationStyle, default [EasyLoadingAnimationStyle.opacity].
86+
EasyLoadingAnimationStyle animationStyle;
87+
88+
/// loading custom animation, default null.
89+
EasyLoadingAnimation customAnimation;
90+
7891
/// textAlign of status, default [TextAlign.center].
7992
TextAlign textAlign;
8093
@@ -105,6 +118,9 @@ double lineWidth;
105118
/// display duration of [showSuccess] [showError] [showInfo], default 2000ms.
106119
Duration displayDuration;
107120
121+
/// animation duration of indicator, default 200ms.
122+
Duration animationDuration;
123+
108124
/// color of loading status, only used for [EasyLoadingStyle.custom].
109125
Color textColor;
110126
@@ -159,13 +175,17 @@ EasyLoading.instance
159175
..userInteractions = true;
160176
```
161177

162-
More indicatorType can see in [flutter_spinkit showcase](https://github.com/jogboms/flutter_spinkit#-showcase)
178+
More indicatorType can see in 👉 [flutter_spinkit showcase](https://github.com/jogboms/flutter_spinkit#-showcase)
179+
180+
## Custom Animation
181+
182+
example: 👉 [Custom Animation](https://github.com/huangjianke/flutter_easyloading/blob/develop/example/lib/custom_animation.dart)
163183

164184
## Todo
165185

166186
- [x] add progress indicator
167187

168-
- [ ] add custom animation
188+
- [x] add custom animation
169189

170190
## Changelog
171191

docs/assets/AssetManifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"]}

docs/assets/FontManifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.ttf"}]},{"family":"packages/cupertino_icons/CupertinoIcons","fonts":[{"asset":"packages/cupertino_icons/assets/CupertinoIcons.ttf"}]}]

0 commit comments

Comments
 (0)