6/22/2
This commit is contained in:
@@ -9,7 +9,6 @@ class MyMenuController extends GetxController {
|
||||
} else {
|
||||
isDrawerOpen = true;
|
||||
}
|
||||
print(isDrawerOpen);
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,6 @@ class CaptainWalletController extends GetxController {
|
||||
// totalAmount = walletDate['message'][0]['total_amount'].toString() == null
|
||||
// ? '0'
|
||||
// : walletDate['message'][0]['total_amount'];
|
||||
// print(totalAmount);
|
||||
|
||||
// var res1 = await CRUD().get(
|
||||
// link: AppLink.getAllPaymentVisa,
|
||||
@@ -56,7 +55,6 @@ class CaptainWalletController extends GetxController {
|
||||
// totalAmountVisa = walletDateVisa['message'][0]['diff'].toString() == null
|
||||
// ? '0'
|
||||
// : walletDateVisa['message'][0]['diff'];
|
||||
// print(totalAmountVisa);
|
||||
// isLoading = false;
|
||||
// update();
|
||||
// }
|
||||
@@ -91,7 +89,6 @@ class CaptainWalletController extends GetxController {
|
||||
});
|
||||
var d = jsonDecode(res);
|
||||
paymentID = d['message'].toString();
|
||||
print('paymentID $paymentID');
|
||||
}
|
||||
|
||||
Future addDriverWallet(String paymentMethod, point) async {
|
||||
|
||||
@@ -44,11 +44,6 @@ class CreditCardController extends GetxController {
|
||||
// String? expiryDate = await SecureStorage().readData(BoxName.expiryDate);
|
||||
// String? cvvCode = await SecureStorage().readData(BoxName.cvvCode);
|
||||
|
||||
// print('cardNumber: $cardNumber');
|
||||
// print('cardHolderName: $cardHolderName');
|
||||
// print('expiryDate: $expiryDate');
|
||||
// print('cvvCode: $cvvCode');
|
||||
|
||||
// if (cvvCode != null && cvvCode.isNotEmpty) {
|
||||
// final maskedCardNumber = DigitObscuringFormatter()
|
||||
// .formatEditUpdate(
|
||||
@@ -57,8 +52,6 @@ class CreditCardController extends GetxController {
|
||||
// )
|
||||
// .text;
|
||||
|
||||
// print('maskedCardNumber: $maskedCardNumber');
|
||||
|
||||
// cardNumberController.text = maskedCardNumber;
|
||||
// cardHolderNameController.text = cardHolderName ?? '';
|
||||
// expiryDateController.text = expiryDate ?? '';
|
||||
|
||||
@@ -26,7 +26,6 @@ class PointsForRiderController extends GetxController {
|
||||
}
|
||||
|
||||
void removeLocation(int index) {
|
||||
print(index);
|
||||
locations.removeAt(index);
|
||||
update();
|
||||
}
|
||||
@@ -96,25 +95,18 @@ class WayPointController extends GetxController {
|
||||
}
|
||||
|
||||
void updatePlace(int index, String input) async {
|
||||
print(myLocation);
|
||||
print(index);
|
||||
print(input);
|
||||
var url =
|
||||
'${AppLink.googleMapsLink}place/nearbysearch/json?keyword=$input&location=${myLocation.latitude},${myLocation.longitude}&radius=50000&language=en&key=${AK.mapAPIKEY.toString()}';
|
||||
print(url);
|
||||
var response = await CRUD().getGoogleApi(link: url, payload: {});
|
||||
// final place = input;
|
||||
// print(response);
|
||||
// if (index == 0) {
|
||||
List<dynamic> newList = [];
|
||||
placeListResponse.add(newList);
|
||||
newList = response['results'];
|
||||
print(newList);
|
||||
placeListResponse[index].add(newList);
|
||||
update();
|
||||
// }
|
||||
|
||||
print(placeListResponse[index]);
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ class ComplaintController extends GetxController {
|
||||
'feedBack': complaintController.text
|
||||
});
|
||||
var d = jsonDecode(res);
|
||||
// print(d);
|
||||
if (d['status'].toString() == 'success') {
|
||||
Get.defaultDialog(
|
||||
title: 'Success'.tr,
|
||||
|
||||
@@ -28,7 +28,6 @@ class OrderHistoryController extends GetxController {
|
||||
var jsonDecoded = jsonDecode(res);
|
||||
|
||||
orderHistoryListPassenger = jsonDecoded['data'];
|
||||
// print(orderHistoryListPassenger);
|
||||
isloading = false;
|
||||
update();
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@ class PromosController extends GetxController {
|
||||
promoList = jsonDecoded['message'];
|
||||
isLoading = false;
|
||||
update();
|
||||
print(promoList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,10 +45,6 @@ class SplashScreenController extends GetxController
|
||||
}
|
||||
|
||||
void startTimer() async {
|
||||
print(box.read(BoxName.email));
|
||||
print(box.read(BoxName.phone));
|
||||
print(box.read(BoxName.isVerified));
|
||||
print('---------');
|
||||
Timer(const Duration(seconds: 5), () async {
|
||||
box.read(BoxName.onBoarding) == null
|
||||
? Get.off(() => OnBoardingPage())
|
||||
|
||||
Reference in New Issue
Block a user