update base api for picture

parent 486f6e83
......@@ -46,7 +46,7 @@ class Result {
String storeLogo;
String isFacilities;
String distanceWithLocation;
String star;
var star;
List<StoreProduct> storeProduct;
List<Comment> comment;
List<dynamic> commentReview;
......@@ -83,7 +83,7 @@ class Result {
storeLogo = json['store_logo'];
isFacilities = json['is_facilities'];
distanceWithLocation = json['distance_with_location'];
star = json['star'];
star = json['star'].toString();
if (json['store_product'] != null) {
storeProduct = new List<StoreProduct>();
json['store_product'].forEach((v) { storeProduct.add(new StoreProduct.fromJson(v)); });
......
......@@ -29,7 +29,7 @@ class Api<T> {
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvYmFja2VuZC11YXQuZmVlbHZlci5jb21cL2FwaVwvbG9naW4iLCJpYXQiOjE1OTYxMDAzNTgsImV4cCI6MTYwMzMwMDM1OCwibmJmIjoxNTk2MTAwMzU4LCJqdGkiOiJ2YjA2S0FHR1JtZDFseEw1Iiwic3ViIjozNzMsInBydiI6Ijg3ZTBhZjFlZjlmZDE1ODEyZmRlYzk3MTUzYTE0ZTBiMDQ3NTQ2YWEifQ.UkY70AshvW5O4M63XY_Iv2IPBohSUUwnRF1oi46p2zs",
};
static final String baseApi = "https://backend-uat.feelver.com/api/storage/";
static final String baseApiforimage = "https://backend-uat.feelver.com/api/storage/";
Future<Response<T>> favorite(Object body) async {
var _model;
var _fail;
......
......@@ -218,7 +218,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin {
),
Expanded(
child: Image.network(
Api.baseApi + img,
Api.baseApiforimage + img,
// width: SizeConfig.getWidth(50),
height: SizeConfig.getHeight(160),
fit: BoxFit.fitHeight,
......
......@@ -235,7 +235,7 @@ class _ShopNearbyPlacesPageState extends State<ShopNearbyPlacesPage>with TickerP
fit: BoxFit.cover,
)
: Image.network(
Api.baseApi + img,
Api.baseApiforimage + img,
fit: BoxFit.cover,
),),
),
......
......@@ -76,12 +76,7 @@ class _ShopListDetailState extends State<ShopListDetail> {
child: Container(
child: GestureDetector(
onTap: () {
showDialog(
context: context,
builder: (BuildContext context) {
return NavDrawer();
},
);
Navigator.pop(context);
},
child: Icon(
Icons.keyboard_arrow_left,
......
......@@ -76,7 +76,7 @@ class _ShopServicePageState extends State<ShopServicePage>
fit: BoxFit.cover,
)
: Image.network(
Api.baseApi + image,
Api.baseApiforimage + image,
fit: BoxFit.cover,
),),
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment