Added Profile picture

master
suresh 6 months ago
parent 4926ff9033
commit 3cd423b00a

@ -207,7 +207,6 @@ class _BookingRequetsState extends State<BookingRequets> {
height: 10,
),
Container(
width: MediaQuery.of(context).size.width * .50,
child: Text(
BookingRequestsList[index]

@ -115,8 +115,8 @@ class AppSettings {
static String UpdateTankerUrl = host + 'updateTankers';
static String addDeliveryboyUrl = host + 'addDeliveryboys';
static String getAllDeliverboyUrl = host + 'getalldeliveryboys';
static String updateDeliveryboyUrl = host + 'updatedeliveryboy';
static String deleteDeliveryboyUrl = host + 'deletedeliveryboy';
static String updateDeliveryboyUrl = host + 'editDeliveryBoy';
static String deleteDeliveryboyUrl = host + 'deleteDeliveryBoy';
static String pendingCustomersUrl = host + 'pendingCustomers';
static String connectedCustomersUrl = host + 'connectedCustomers';
static String bookingRequestsUrl = host + 'getAllTankersBookingdetails';
@ -160,8 +160,6 @@ class AppSettings {
Dialogs.showLoadingDialog(context, preLoaderKey);
} catch (error) {}
}
static Future<String> uploadImageHTTPNew(file) async {
var request = http.MultipartRequest('POST', Uri.parse(uploadPicUrl + '/' + supplierId));
@ -204,7 +202,6 @@ class AppSettings {
await sharedPreferences.setDouble(_key, _value);
}
}
static getData(String _key, type) async {
sharedPreferences = await SharedPreferences.getInstance();
if (type == 'STRING') {
@ -217,7 +214,6 @@ class AppSettings {
return sharedPreferences.getDouble(_key) ?? -1;
}
}
static clearSharedPreferences() async {
sharedPreferences = await SharedPreferences.getInstance();
await sharedPreferences.clear();
@ -233,8 +229,6 @@ class AppSettings {
}
return isSignInCheck;
}
static Future<bool> internetConnectivity() async {
try {
final result = await InternetAddress.lookup('google.com');
@ -247,6 +241,11 @@ class AppSettings {
return false;
}
/*Apis Starts here*/
static Future<bool> login(payload) async {

@ -502,8 +502,6 @@ class _TankersViewState extends State<TankersView> {
payload["price"] = updateTankerpriceController.text.toString();
payload["supplier_address"] = AppSettings.supplierAddress;
payload["supplier_name"] = AppSettings.suppliername;
bool tankStatus = await AppSettings.updateTanker(object.tanker_name, payload);
try {
if (tankStatus) {

Loading…
Cancel
Save