From 210adf67ee1f5184022822675c12ddb6459f2cb7 Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Wed, 29 Jun 2022 13:41:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=BF=AE=E6=94=B9=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{map_style => area_code}/area_code_full.json | 0 lib/login/phone_address_page.dart | 2 +- pubspec.yaml | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) rename assets/{map_style => area_code}/area_code_full.json (100%) diff --git a/assets/map_style/area_code_full.json b/assets/area_code/area_code_full.json similarity index 100% rename from assets/map_style/area_code_full.json rename to assets/area_code/area_code_full.json diff --git a/lib/login/phone_address_page.dart b/lib/login/phone_address_page.dart index cd7e50ad..b7529de7 100644 --- a/lib/login/phone_address_page.dart +++ b/lib/login/phone_address_page.dart @@ -27,7 +27,7 @@ class _PhoneAddressPage extends State { void areaCode() async { var value = - await rootBundle.loadString('assets/map_style/area_code_full.json'); + await rootBundle.loadString('assets/area_code/area_code_full.json'); areaMap = jsonDecode(value); areaMap.forEach((key, value) { areaList.add(key); diff --git a/pubspec.yaml b/pubspec.yaml index e29f45e9..b6225673 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -111,6 +111,7 @@ flutter: - assets/image/2x/ - assets/image/3x/ - assets/map_style/ + - asstes/area_code/ - assets/riv/ - assets/svg/ # - assets/fonts/