Merge remote-tracking branch 'origin/master'

# Conflicts:
#	lib/settings.dart
dev
suresh 1 year ago
commit 08aa64ff13

@ -42,7 +42,7 @@ class _DashboardState extends State<Dashboard> {
Future<void> uploadProfileApi(image) async { Future<void> uploadProfileApi(image) async {
var payload = new Map<String, dynamic>(); var payload = new Map<String, dynamic>();
payload["picture"] = image.toString(); payload["imagePath"] = image.toString();
var response1= await AppSettings.updateProfilePicture(payload); var response1= await AppSettings.updateProfilePicture(payload);
print(response1); print(response1);

@ -124,11 +124,13 @@ class AppSettings {
static String acceptRequestUrl = host +"friend-request/accept"; static String acceptRequestUrl = host +"friend-request/accept";
static String rejectRequestUrl = host +"friend-request/reject"; static String rejectRequestUrl = host +"friend-request/reject";
static String profilePicUrl = host + 'supplier/profile-picture'; static String profilePicUrl = host + 'supplier/profile-picture';
static String uploadPicUrl = host + 'uploads';
static String profilePictureUrl = '';
@ -233,25 +235,6 @@ class AppSettings {
return false; 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*/ /*Apis Starts here*/
static Future<bool> login(payload) async { static Future<bool> login(payload) async {

Loading…
Cancel
Save