Browse Source

门店列表适配更改

dev
huixiang_app 1 year ago
parent
commit
b351eded42
  1. 8
      lib/union/union_list.dart
  2. 16
      lib/union/union_page.dart

8
lib/union/union_list.dart

@ -275,6 +275,7 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
),
),
SizedBox(width: 22.w),
if (store.distance != null)
Image.asset(
"assets/image/icon_union_location_black.webp",
fit: BoxFit.fill,
@ -282,6 +283,7 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
width: 12,
),
SizedBox(width: 4.w),
if (store.distance != null)
Text(
(store.distance ?? 0) > 1000
? S.of(context).gongli(
@ -305,7 +307,7 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
SizedBox(height: store.businessService == "" ? 40.h : 23.h),
if (storeList[position].productShow != null)
Container(
height: 100.h,
height: 120.h,
child: ListView.builder(
padding: EdgeInsets.zero,
itemCount:
@ -367,8 +369,8 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
children: [
MImage(
productShow?.imgs[0] ?? "",
width: 74,
height: 74,
width: 74.h,
height: 74.h,
fit: BoxFit.cover,
radius: BorderRadius.circular(4),
errorSrc: "assets/image/default_1.webp",

16
lib/union/union_page.dart

@ -314,7 +314,8 @@ class UnionPageState extends State<UnionPage>
Widget buildSearchItem() {
return Container(
height: 36.h,
margin: EdgeInsets.fromLTRB(6.w, 0, 14.w, 0),
margin: EdgeInsets.fromLTRB(14.w, 0, 14.w, 0),
padding: EdgeInsets.fromLTRB(0, 6.h, 0, 6.h),
decoration: BoxDecoration(
color: Color(0xFFF5FAF7),
borderRadius: BorderRadius.circular(4),
@ -337,20 +338,17 @@ class UnionPageState extends State<UnionPage>
cursorHeight: 25.h,
decoration: InputDecoration(
contentPadding: EdgeInsets.symmetric(
vertical: 14.h,
vertical: 12.h,
),
hintText: "搜索联盟会员店",
hintStyle: TextStyle(
fontSize: 12.sp,
color: Color(0xFFB3B3B3),
),
prefixIcon: GestureDetector(
onTap: loadFinish,
child: Image.asset(
"assets/image/icon_search.webp",
width: 16,
height: 16,
),
prefixIcon:Image.asset(
"assets/image/icon_search.webp",
width: 16,
height: 16,
),
border: InputBorder.none,
),

Loading…
Cancel
Save