@@ -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
1115Add this to your package's ` pubspec.yaml ` file:
1216
1317``` yaml
1418dependencies :
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].
7680EasyLoadingMaskType 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].
7992TextAlign textAlign;
8093
@@ -105,6 +118,9 @@ double lineWidth;
105118/// display duration of [showSuccess] [showError] [showInfo], default 2000ms.
106119Duration displayDuration;
107120
121+ /// animation duration of indicator, default 200ms.
122+ Duration animationDuration;
123+
108124/// color of loading status, only used for [EasyLoadingStyle.custom].
109125Color 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
0 commit comments