changes in add tankers

dev
Sneha 2 years ago
parent 3f79208149
commit dd4d7a9728

@ -434,7 +434,7 @@ class _AddTankersState extends State<AddTankers> {
if (tankerNameController.text != '' && if (tankerNameController.text != '' &&
tankerPhoneNumberController.text != '' && tankerPhoneNumberController.text != '' &&
tankerAlternativePhoneNumberController.text != '' && tankerAlternativePhoneNumberController.text != '' &&
tankerDrinkingPriceController.text != '' && tankerCapacityController.text != '' &&
waterTypes.isNotEmpty) { waterTypes.isNotEmpty) {
waterPrice=[]; waterPrice=[];
if(isDrinkingChecked){ if(isDrinkingChecked){
@ -444,7 +444,7 @@ class _AddTankersState extends State<AddTankers> {
waterTypes.removeWhere((e) => e['price'].toString() == tankerDrinkingPriceController.text.toString()); waterTypes.removeWhere((e) => e['price'].toString() == tankerDrinkingPriceController.text.toString());
}*/ }*/
if(isBoreChecked){ else if(isBoreChecked){
waterPrice.add({'price': tankerBorePriceController.text.toString()}); waterPrice.add({'price': tankerBorePriceController.text.toString()});
} }
/*else{ /*else{

@ -283,8 +283,9 @@ class _ConectedPendingCustomersState extends State<ConectedPendingCustomers> wit
if(requestStatus){ if(requestStatus){
AppSettings.longSuccessToast("Request Accepted Successfully"); AppSettings.longSuccessToast("Request Accepted Successfully");
// await getConnectedSuppliersData();
await getPendingSuppliersData(); await getPendingSuppliersData();
await getConnectedSuppliersData();
} }
else{ else{

Loading…
Cancel
Save