Skip to content

Commit dccd83a

Browse files
committed
v3.0.1 - updates
1 parent 5da88b1 commit dccd83a

File tree

5 files changed

+218
-169
lines changed

5 files changed

+218
-169
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [3.0.1] - 2021-12-18
2+
3+
* Gracefully handle bad responses
4+
* Flutter format
5+
16
## [3.0.0] - 2021-12-16
27

38
* Breaking changes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In your flutter project add the dependency:
1515
``` dart
1616
dependencies:
1717
...
18-
woosignal: ^3.0.0
18+
woosignal: ^3.0.1
1919
```
2020

2121
### Usage example #

lib/models/response/woosignal_app.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ class WooSignalApp {
104104
if (json.containsKey('theme_font') && json['theme_font'] != null) {
105105
themeFont = json['theme_font'];
106106
}
107-
if (json.containsKey('social_links') && json['social_links'] is Map<String, dynamic>?) {
107+
if (json.containsKey('social_links') &&
108+
json['social_links'] is Map<String, dynamic>?) {
108109
socialLinks = json['social_links'];
109110
}
110-
if (json.containsKey('theme_colors') && json['theme_colors'] is Map<String, dynamic>?) {
111+
if (json.containsKey('theme_colors') &&
112+
json['theme_colors'] is Map<String, dynamic>?) {
111113
themeColors = json['theme_colors'];
112114
}
113115
}

0 commit comments

Comments
 (0)