|
|
@ -164,21 +164,6 @@ class _StoreInfoView extends State<StoreInfoView> { |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Expanded( |
|
|
|
|
|
|
|
child: Text( |
|
|
|
|
|
|
|
"${S.of(context).dizhi}:${widget.storeInfo != null ? widget.storeInfo.address : ""}", |
|
|
|
|
|
|
|
maxLines: 2, |
|
|
|
|
|
|
|
textAlign: TextAlign.justify, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox( |
|
|
|
|
|
|
|
width: 16.w, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
GestureDetector( |
|
|
|
GestureDetector( |
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
onTap: () { |
|
|
|
onTap: () { |
|
|
@ -192,22 +177,49 @@ class _StoreInfoView extends State<StoreInfoView> { |
|
|
|
); |
|
|
|
); |
|
|
|
}, |
|
|
|
}, |
|
|
|
child:Container( |
|
|
|
child:Container( |
|
|
|
|
|
|
|
color: Colors.transparent, |
|
|
|
padding:EdgeInsets.only(right: 8.w) , |
|
|
|
padding:EdgeInsets.only(right: 8.w) , |
|
|
|
child: Image.asset( |
|
|
|
child: Image.asset( |
|
|
|
"assets/image/icon_union_location.webp", |
|
|
|
"assets/image/icon_union_location.webp", |
|
|
|
width: 24.w, |
|
|
|
width: 20, |
|
|
|
height: 24.h, |
|
|
|
height: 20, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Expanded( |
|
|
|
|
|
|
|
child: GestureDetector( |
|
|
|
|
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
|
|
|
|
onTap: () { |
|
|
|
|
|
|
|
Navigator.of(context).pushNamed( |
|
|
|
|
|
|
|
'/router/location_map', |
|
|
|
|
|
|
|
arguments: { |
|
|
|
|
|
|
|
"lat": widget.storeInfo.latitude, |
|
|
|
|
|
|
|
"lng": widget.storeInfo.longitude, |
|
|
|
|
|
|
|
"storeName": widget.storeInfo.storeName, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
child: Text( |
|
|
|
|
|
|
|
"${S.of(context).dizhi}:${widget.storeInfo != null ? widget.storeInfo.address : ""}", |
|
|
|
|
|
|
|
maxLines: 2, |
|
|
|
|
|
|
|
textAlign: TextAlign.justify, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
|
|
|
|
if((widget?.storeInfo?.tel ?? "") != "") |
|
|
|
if((widget?.storeInfo?.tel ?? "") != "") |
|
|
|
GestureDetector( |
|
|
|
GestureDetector( |
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
behavior: HitTestBehavior.translucent, |
|
|
|
onTap: () { |
|
|
|
onTap: () { |
|
|
|
showCallMobile(); |
|
|
|
showCallMobile(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
child: Container( |
|
|
|
child: Container( |
|
|
|
padding:EdgeInsets.only(left: 8.w) , |
|
|
|
padding:EdgeInsets.only(left: 16.w,right: 8.w) , |
|
|
|
child: Image.asset( |
|
|
|
child: Image.asset( |
|
|
|
"assets/image/icon_union_call.webp", |
|
|
|
"assets/image/icon_union_call.webp", |
|
|
|
width: 24, |
|
|
|
width: 24, |
|
|
|