Skip to content

Commit 6a254d9

Browse files
committed
update version v2.2.2 (#77)
1 parent bc94c56 commit 6a254d9

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.2.2] - 2020.12.28
2+
3+
* fixed [#77](https://github.com/kokohuang/flutter_easyloading/issues/77)
4+
15
## [2.2.1] - 2020.11.30
26

37
* fixed bugs

README-zh_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
```yaml
1818
dependencies:
19-
flutter_easyloading: ^2.2.1
19+
flutter_easyloading: ^2.2.2
2020
```
2121
2222
## 导入

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Add this to your package's `pubspec.yaml` file:
1616

1717
```yaml
1818
dependencies:
19-
flutter_easyloading: ^2.2.1
19+
flutter_easyloading: ^2.2.2
2020
```
2121
2222
## Import

example/ios/Podfile.lock

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- flutter_boost (0.0.2):
4-
- Flutter
53

64
DEPENDENCIES:
75
- Flutter (from `Flutter`)
8-
- flutter_boost (from `.symlinks/plugins/flutter_boost/ios`)
96

107
EXTERNAL SOURCES:
118
Flutter:
129
:path: Flutter
13-
flutter_boost:
14-
:path: ".symlinks/plugins/flutter_boost/ios"
1510

1611
SPEC CHECKSUMS:
1712
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
18-
flutter_boost: a7cfa776b75329d5e7d101d0cd33e75042bcde69
1913

2014
PODFILE CHECKSUM: f32fb4e7c14f8b3ca19a369d7be425dd9241af27
2115

lib/src/easy_loading.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,14 @@ class EasyLoading {
274274
value >= 0.0 && value <= 1.0,
275275
'progress value should be 0.0 ~ 1.0',
276276
);
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+
277285
if (_getInstance().w == null || _getInstance().progressKey == null) {
278286
if (_getInstance().key != null) await dismiss(animation: false);
279287
GlobalKey<EasyLoadingProgressState> _progressKey =
@@ -435,10 +443,6 @@ class EasyLoading {
435443
indicatorColor != null,
436444
'while loading style is custom, indicatorColor should not be null',
437445
);
438-
assert(
439-
progressColor != null,
440-
'while loading style is custom, progressColor should not be null',
441-
);
442446
assert(
443447
textColor != null,
444448
'while loading style is custom, textColor should not be null',

0 commit comments

Comments
 (0)