From 9fe86f7b1c607759016d9b784334e6b514c2b5cf Mon Sep 17 00:00:00 2001 From: Tian Jiale Date: Wed, 1 Feb 2023 10:41:35 +0800 Subject: [PATCH] Fixed default country settings --- lib/data/home1.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/data/home1.dart b/lib/data/home1.dart index 0fe62e5..4715b6d 100644 --- a/lib/data/home1.dart +++ b/lib/data/home1.dart @@ -17,7 +17,7 @@ class HomeApi { if (response.statusCode == 200) { Map data = jsonDecode(utf8.decode(response.bodyBytes)); String countryCode = data['countryCode']; - String countryName = data['India']; + String countryName = data['country']; await box.put('countryCode', countryCode); await box.put('countryName', countryName); }