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"