|
|
|
@ -124,11 +124,13 @@ class AppSettings {
|
|
|
|
|
static String acceptRequestUrl = host +"friend-request/accept";
|
|
|
|
|
static String rejectRequestUrl = host +"friend-request/reject";
|
|
|
|
|
static String profilePicUrl = host + 'supplier/profile-picture';
|
|
|
|
|
static String uploadPicUrl = host + 'uploads';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static String profilePictureUrl = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -233,25 +235,6 @@ class AppSettings {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static Future<String> uploadImageHTTPNew(file) async {
|
|
|
|
|
|
|
|
|
|
var request = http.MultipartRequest('POST', Uri.parse(uploadPicUrl + '/' + supplierId));
|
|
|
|
|
request.files.add(await http.MultipartFile.fromPath('picture', file.path));
|
|
|
|
|
var res = await request.send();
|
|
|
|
|
var response = await http.Response.fromStream(res);
|
|
|
|
|
return response.body;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*Apis Starts here*/
|
|
|
|
|
|
|
|
|
|
static Future<bool> login(payload) async {
|
|
|
|
|