|
|
|
@ -72,6 +72,7 @@ class AppSettings {
|
|
|
|
|
static String latitude='';
|
|
|
|
|
static String longitude='';
|
|
|
|
|
static String supplierAddress = '';
|
|
|
|
|
static String profilepic = '';
|
|
|
|
|
static bool servicestatus = false;
|
|
|
|
|
static bool haspermission = false;
|
|
|
|
|
static late LocationPermission permission;
|
|
|
|
@ -103,7 +104,7 @@ class AppSettings {
|
|
|
|
|
static String acceptBookingRequestsUrl = host + 'ordernow';
|
|
|
|
|
static String acceptRequestUrl = host +"friend-request/accept";
|
|
|
|
|
static String rejectRequestUrl = host +"friend-request/reject";
|
|
|
|
|
static String profilePicUrl = host + 'supplier/profile-picture';
|
|
|
|
|
static String profilePicUrl = host + 'upload-image';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -873,6 +874,7 @@ class AppSettings {
|
|
|
|
|
await saveData('email', input['simplydata']['email'][0]['email'], 'STRING');
|
|
|
|
|
await saveData('supplierId', input['simplydata']['supplierId'], 'STRING');
|
|
|
|
|
await saveData('supplieraddress', input['simplydata']['office_address'], 'STRING');
|
|
|
|
|
await saveData('profile', input['simplydata']['picture'], 'STRING');
|
|
|
|
|
|
|
|
|
|
await loadDataFromMemory();
|
|
|
|
|
}
|
|
|
|
@ -889,6 +891,7 @@ class AppSettings {
|
|
|
|
|
phoneNumber=await getData('phone', 'STRING');
|
|
|
|
|
supplierId=await getData('supplierId', 'STRING');
|
|
|
|
|
supplierAddress=await getData('supplieraddress', 'STRING');
|
|
|
|
|
profilepic=await getData('profile', 'STRING');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//assign saved values to variables
|
|
|
|
|