From efdd28fb46faa3b2dd72b4da929f2300c8edc293 Mon Sep 17 00:00:00 2001 From: Wilberforce Uwadiegwu Date: Thu, 9 Aug 2018 12:26:39 +0100 Subject: [PATCH] Support for Flutter v0.5.1 --- CHANGELOG.md | 4 ++++ lib/src/api/service/api_service.dart | 6 +++--- pubspec.yaml | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 071325d5..8e5c4675 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.5.2 + +* Support for Flutter v0.5.1. + ## 0.5.1 * Exposed Paystack Exception diff --git a/lib/src/api/service/api_service.dart b/lib/src/api/service/api_service.dart index 431e51a0..f34ab5d2 100644 --- a/lib/src/api/service/api_service.dart +++ b/lib/src/api/service/api_service.dart @@ -27,7 +27,7 @@ class ApiService { var statusCode = response.statusCode; - if (statusCode == HttpStatus.ok) { + if (statusCode == HttpStatus.OK) { Map responseBody = json.decode(body); completer.complete(TransactionApiResponse.fromMap(responseBody)); } else { @@ -52,7 +52,7 @@ class ApiService { var body = response.body; var statusCode = response.statusCode; - if (statusCode == HttpStatus.ok) { + if (statusCode == HttpStatus.OK) { Map responseBody = json.decode(body); completer.complete(TransactionApiResponse.fromMap(responseBody)); } else { @@ -73,7 +73,7 @@ class ApiService { http.Response response = await http.get(url, headers: headers); var body = response.body; var statusCode = response.statusCode; - if (statusCode == HttpStatus.ok) { + if (statusCode == HttpStatus.OK) { Map responseBody = json.decode(body); completer.complete(TransactionApiResponse.fromMap(responseBody)); } else { diff --git a/pubspec.yaml b/pubspec.yaml index ab332002..bf2a6cb8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_paystack description: A Flutter plugin for making payments via Paystack Payment Gateway. Completely supports Android and iOS. -version: 0.5.1 +version: 0.5.2 author: Wilberforce Uwadiegwu homepage: https://github.com/wilburt/flutter_paystack