|
|
|
@ -100,7 +100,7 @@ class _PendingCustomersState extends State<PendingCustomers> {
|
|
|
|
|
Text('contactNumber:',
|
|
|
|
|
style: labelTextStyle()),
|
|
|
|
|
SizedBox(height: 10,),
|
|
|
|
|
Text('address1:',
|
|
|
|
|
Text('address:',
|
|
|
|
|
style: labelTextStyle()),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
@ -141,25 +141,18 @@ class _PendingCustomersState extends State<PendingCustomers> {
|
|
|
|
|
color:primaryColor/*FilteredList[index].text_color*/ ),
|
|
|
|
|
),
|
|
|
|
|
onPressed: () async{
|
|
|
|
|
/* var payload = new Map<String, dynamic>();
|
|
|
|
|
payload["customerId"] =AppSettings.customerId;
|
|
|
|
|
payload["supplierId"] = FilteredList[index].supplier_id;
|
|
|
|
|
|
|
|
|
|
bool requestStatus = await AppSettings.connectRequest(payload);
|
|
|
|
|
var payload = new Map<String, dynamic>();
|
|
|
|
|
payload["supplierId"] =AppSettings.supplierId;
|
|
|
|
|
bool requestStatus = await AppSettings.acceptRequest(payload);
|
|
|
|
|
|
|
|
|
|
if(requestStatus){
|
|
|
|
|
AppSettings.longSuccessToast("Request Sent Successfully");
|
|
|
|
|
await getAllSuppliersData();
|
|
|
|
|
await getConnectedSuppliersData();
|
|
|
|
|
AppSettings.longSuccessToast("Request Accepted Successfully");
|
|
|
|
|
// await getConnectedSuppliersData();
|
|
|
|
|
await getPendingSuppliersData();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
@ -226,7 +219,7 @@ class _PendingCustomersState extends State<PendingCustomers> {
|
|
|
|
|
return SafeArea(
|
|
|
|
|
child: Scaffold(
|
|
|
|
|
appBar: AppSettings.appBar('Pending Customers'),
|
|
|
|
|
body: isLoading?Center(
|
|
|
|
|
body: isPendingDataLoading?Center(
|
|
|
|
|
child: CircularProgressIndicator(
|
|
|
|
|
color: primaryColor,
|
|
|
|
|
strokeWidth: 5.0,
|
|
|
|
|