Skip to content

Commit 8a5c588

Browse files
committed
v2.0.2 - Add theme var to woosignal_app
1 parent b2a5e05 commit 8a5c588

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.0.2] - 2021-04-11
2+
3+
* Add theme var to woosignal_app
4+
15
## [2.0.1] - 2021-04-10
26

37
* null check on Order vars

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: ^2.0.1
18+
woosignal: ^2.0.2
1919
```
2020

2121
### Usage example #

lib/models/response/woosignal_app.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class WooSignalApp {
3030
String? wpLoginWpApiPath;
3131
int? productPricesIncludeTax;
3232
int? disableShipping;
33+
String? theme;
3334

3435
WooSignalApp(
3536
{this.appName,
@@ -47,7 +48,8 @@ class WooSignalApp {
4748
this.wpLoginForgotPasswordUrl,
4849
this.wpLoginWpApiPath,
4950
this.productPricesIncludeTax,
50-
this.disableShipping});
51+
this.disableShipping,
52+
this.theme});
5153

5254
WooSignalApp.fromJson(Map<String, dynamic> json) {
5355
appName = json['app_name'];
@@ -68,6 +70,7 @@ class WooSignalApp {
6870
wpLoginWpApiPath = json['wp_login_wp_api_path'];
6971
productPricesIncludeTax = json['product_prices_include_tax'];
7072
disableShipping = json['disable_shipping'];
73+
theme = json['theme'];
7174
}
7275

7376
Map<String, dynamic> toJson() {
@@ -90,6 +93,7 @@ class WooSignalApp {
9093
data['wp_login_wp_api_path'] = this.wpLoginWpApiPath;
9194
data['product_prices_include_tax'] = this.productPricesIncludeTax;
9295
data['disable_shipping'] = this.disableShipping;
96+
data['theme'] = this.theme;
9397
return data;
9498
}
9599
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: woosignal
22
description: WooCommerce REST API for dart, connect a WooCommerce store and start developing with our interface for their API endpoints.
3-
version: 2.0.1
3+
version: 2.0.2
44
homepage: https://woosignal.com
55
repository: https://github.com/woosignal/flutter-woocommerce-api
66
issue_tracker: https://github.com/woosignal/flutter-woocommerce-api/issues

0 commit comments

Comments
 (0)