From 4ed7d56725e0012aad58ffdbacb9983d56480d42 Mon Sep 17 00:00:00 2001 From: fmk Date: Thu, 9 Jun 2022 11:08:59 +0800 Subject: [PATCH] =?UTF-8?q?ios=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/home/home_view/home_recommend_goods.dart | 6 +++--- lib/union/union_list.dart | 1 + lib/union/union_page.dart | 15 ++++++++++----- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/lib/home/home_view/home_recommend_goods.dart b/lib/home/home_view/home_recommend_goods.dart index a2572b62..7f36da79 100644 --- a/lib/home/home_view/home_recommend_goods.dart +++ b/lib/home/home_view/home_recommend_goods.dart @@ -41,7 +41,7 @@ class _HomeRecommendGoods extends State { mainAxisAlignment: MainAxisAlignment.start, children: [ Container( - height: 235.h, + height: 240.h, decoration: BoxDecoration( borderRadius: BorderRadius.circular(6), color: Colors.white, @@ -92,8 +92,8 @@ class _HomeRecommendGoods extends State { commodityZone?.productImg ?? "", fit: BoxFit.contain, radius: BorderRadius.circular(4.r), - width: 158, - height: 158, + width: 158.w, + height: 158.h, errorSrc: "assets/image/default_2_1.webp", fadeSrc: "assets/image/default_2_1.webp", ), diff --git a/lib/union/union_list.dart b/lib/union/union_list.dart index d4b91c6e..ad9d7866 100644 --- a/lib/union/union_list.dart +++ b/lib/union/union_list.dart @@ -238,6 +238,7 @@ class _UnionList extends State { ], )), + if(store.distance != null) Container( width: 59.w, height: 18.h, diff --git a/lib/union/union_page.dart b/lib/union/union_page.dart index fc13e9ad..7e118cca 100644 --- a/lib/union/union_page.dart +++ b/lib/union/union_page.dart @@ -243,9 +243,9 @@ class UnionPageState extends State } BaseData> baseData = await apiService.queryStore({ "city": city, - "district": district, - "province": province, - "latitude": latitude, + // "district": district, + // "province": province, + // "latitude": latitude, "longitude": longitude, "searchKey": searchKey, "serviceType": (tabController.index == 0 && index == -1) || index == 0 @@ -287,7 +287,12 @@ class UnionPageState extends State @override Widget build(BuildContext context) { super.build(context); - return Scaffold( + return GestureDetector( + behavior: HitTestBehavior.translucent, + onTap: (){ + FocusScope.of(context).requestFocus(FocusNode()); + }, + child:Scaffold( appBar: MyAppBar( title: "", leading: false, @@ -330,7 +335,7 @@ class UnionPageState extends State UnionList(refreshController3, storeList3,(){startLocation(true);}), ], ), - ); + )); // GestureDetector( // onTap: () { // FocusScope.of(context).requestFocus(FocusNode());