|
|
@ -190,14 +190,18 @@ class _StoreInfoView extends State<StoreInfoView> { |
|
|
|
child: GestureDetector( |
|
|
|
child: GestureDetector( |
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
behavior: HitTestBehavior.opaque, |
|
|
|
onTap: () { |
|
|
|
onTap: () { |
|
|
|
Navigator.of(context).pushNamed( |
|
|
|
if(widget.storeInfo.longitude != null && widget.storeInfo.latitude != null){ |
|
|
|
'/router/location_map', |
|
|
|
Navigator.of(context).pushNamed( |
|
|
|
arguments: { |
|
|
|
'/router/location_map', |
|
|
|
"lat": widget.storeInfo.latitude, |
|
|
|
arguments: { |
|
|
|
"lng": widget.storeInfo.longitude, |
|
|
|
"lat": widget.storeInfo.latitude, |
|
|
|
"storeName": widget.storeInfo.storeName, |
|
|
|
"lng": widget.storeInfo.longitude, |
|
|
|
}, |
|
|
|
"storeName": widget.storeInfo.storeName, |
|
|
|
); |
|
|
|
}, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
child: Text( |
|
|
|
child: Text( |
|
|
|
"${S.of(context).dizhi}:${widget.storeInfo != null ? widget.storeInfo.address : ""}", |
|
|
|
"${S.of(context).dizhi}:${widget.storeInfo != null ? widget.storeInfo.address : ""}", |
|
|
|