File tree Expand file tree Collapse file tree 5 files changed +14
-12
lines changed Expand file tree Collapse file tree 5 files changed +14
-12
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 2.2.2] - 2020.12.28
2
+
3
+ * fixed [ #77 ] ( https://github.com/kokohuang/flutter_easyloading/issues/77 )
4
+
1
5
## [ 2.2.1] - 2020.11.30
2
6
3
7
* fixed bugs
Original file line number Diff line number Diff line change 16
16
17
17
``` yaml
18
18
dependencies :
19
- flutter_easyloading : ^2.2.1
19
+ flutter_easyloading : ^2.2.2
20
20
` ` `
21
21
22
22
## 导入
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Add this to your package's `pubspec.yaml` file:
16
16
17
17
``` yaml
18
18
dependencies :
19
- flutter_easyloading : ^2.2.1
19
+ flutter_easyloading : ^2.2.2
20
20
` ` `
21
21
22
22
## Import
Original file line number Diff line number Diff line change 1
1
PODS:
2
2
- Flutter (1.0.0)
3
- - flutter_boost (0.0.2):
4
- - Flutter
5
3
6
4
DEPENDENCIES:
7
5
- Flutter (from `Flutter`)
8
- - flutter_boost (from `.symlinks/plugins/flutter_boost/ios`)
9
6
10
7
EXTERNAL SOURCES:
11
8
Flutter:
12
9
:path: Flutter
13
- flutter_boost:
14
- :path: ".symlinks/plugins/flutter_boost/ios"
15
10
16
11
SPEC CHECKSUMS:
17
12
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
18
- flutter_boost: a7cfa776b75329d5e7d101d0cd33e75042bcde69
19
13
20
14
PODFILE CHECKSUM: f32fb4e7c14f8b3ca19a369d7be425dd9241af27
21
15
Original file line number Diff line number Diff line change @@ -274,6 +274,14 @@ class EasyLoading {
274
274
value >= 0.0 && value <= 1.0 ,
275
275
'progress value should be 0.0 ~ 1.0' ,
276
276
);
277
+
278
+ if (_getInstance ().loadingStyle == EasyLoadingStyle .custom) {
279
+ assert (
280
+ _getInstance ().progressColor != null ,
281
+ 'while loading style is custom, progressColor should not be null' ,
282
+ );
283
+ }
284
+
277
285
if (_getInstance ().w == null || _getInstance ().progressKey == null ) {
278
286
if (_getInstance ().key != null ) await dismiss (animation: false );
279
287
GlobalKey <EasyLoadingProgressState > _progressKey =
@@ -435,10 +443,6 @@ class EasyLoading {
435
443
indicatorColor != null ,
436
444
'while loading style is custom, indicatorColor should not be null' ,
437
445
);
438
- assert (
439
- progressColor != null ,
440
- 'while loading style is custom, progressColor should not be null' ,
441
- );
442
446
assert (
443
447
textColor != null ,
444
448
'while loading style is custom, textColor should not be null' ,
You can’t perform that action at this time.
0 commit comments