From fcf841290006ae527ef4f728c1b303bbe07f88f7 Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Tue, 12 Jul 2022 17:30:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=88=97=E8=A1=A8=E6=94=B9?= =?UTF-8?q?=E4=BA=86=E5=AD=97=E6=AE=B5=E5=AD=98=E6=94=BE=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=95=B0=E6=8D=AE,=E6=9B=B4=E6=94=B9=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=90=8D=E5=8D=B3=E5=8F=AF;=20=E5=95=86=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=BC=98=E5=8C=96;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/address/address_map_page.dart | 3 ++- lib/store/store_view/store_order_list.dart | 4 +--- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/address/address_map_page.dart b/lib/address/address_map_page.dart index 0db191ba..f06ffe70 100644 --- a/lib/address/address_map_page.dart +++ b/lib/address/address_map_page.dart @@ -144,7 +144,8 @@ class _AddressMapPage extends State { print("keyWord: ${keyWord}"); var addressPoi = await apiService.searchPoi( "${latLng.latitude}", "${latLng.longitude}", keyWord, 20, 1); - List poi = addressPoi['pois']; + //如果定位列表无法显示,可以考虑数据是否不在当前字段里面;例:原数据放在['pois']里面,后改成了数据放在['entrances']里面 + List poi = addressPoi['entrances']; poiList = poi .map((e) => Address.fromJson({ "address": e["address"] is List ? "" : e["address"], diff --git a/lib/store/store_view/store_order_list.dart b/lib/store/store_view/store_order_list.dart index e69ce32f..6966a8ad 100644 --- a/lib/store/store_view/store_order_list.dart +++ b/lib/store/store_view/store_order_list.dart @@ -198,9 +198,7 @@ class _StoreOrderListPage extends State { // isSelected = index; // productListBeans.clear(); // productListBeans.addAll(appletProducts[index].productList); - controller.animateTo(appletProducts[index].goodsIndex, - duration: Duration(milliseconds: 300), - curve: Curves.ease); + controller.jumpTo(appletProducts[index].goodsIndex); }); }, child: Stack( diff --git a/pubspec.yaml b/pubspec.yaml index 6f924c1f..b6e03d8a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: 一心回乡. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 2.0.31+19 +version: 2.0.32+20 environment: sdk: ">=2.7.0 <3.0.0"