Added Profile picture

master
suresh 6 months ago
parent 4926ff9033
commit 3cd423b00a

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

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

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

Loading…
Cancel
Save