From 167a321cd58d3513d5b0e373809dcaedddabe822 Mon Sep 17 00:00:00 2001 From: Mohamed Nouffer Date: Fri, 15 Sep 2023 18:59:00 +0530 Subject: [PATCH] update error message --- lib/services/external_service.dart | 5 ++++- pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/services/external_service.dart b/lib/services/external_service.dart index 0c01c3c..3ca7ce4 100644 --- a/lib/services/external_service.dart +++ b/lib/services/external_service.dart @@ -125,7 +125,7 @@ class ExternalService { _res = json.decode(utf8.decode(response.bodyBytes)); - print("-----@@@@@ $_res -----"); + print("-----@@@@@ checkin $_res -----"); if(response.statusCode == 201){ //print('---- toekn is ${token} -----'); @@ -152,6 +152,9 @@ class ExternalService { if (response2.statusCode == 200) { _res = json.decode(utf8.decode(response2.bodyBytes)); print('----checkin res _res : $_res ----'); + if(_res["status"] == "ERROR"){ + Get.snackbar("エラーがおきました", _res["detail"]); + } } } else{ diff --git a/pubspec.yaml b/pubspec.yaml index 5c597f9..c074628 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.20+20 +version: 1.0.21+21 environment: sdk: '>=3.1.0 <4.0.0'