10/1/1
This commit is contained in:
@@ -10,9 +10,9 @@ import '../../main.dart';
|
||||
import '../functions/crud.dart';
|
||||
|
||||
class PaymentController extends GetxController {
|
||||
bool isloading = false;
|
||||
bool isWalletCheced = true;
|
||||
bool isCashCheced = false;
|
||||
bool isLoading = false;
|
||||
bool isWalletChecked = true;
|
||||
bool isCashChecked = false;
|
||||
bool isWalletFound = false;
|
||||
bool isPromoSheetDialogue = false;
|
||||
final formKey = GlobalKey<FormState>();
|
||||
@@ -32,7 +32,7 @@ class PaymentController extends GetxController {
|
||||
}
|
||||
|
||||
getPassengerWallet() async {
|
||||
isloading = true;
|
||||
isLoading = true;
|
||||
update();
|
||||
|
||||
await CRUD().get(
|
||||
@@ -42,19 +42,19 @@ class PaymentController extends GetxController {
|
||||
jsonDecode(value)['message'][0]['total'].toString());
|
||||
});
|
||||
|
||||
isloading = false;
|
||||
isLoading = false;
|
||||
update();
|
||||
}
|
||||
|
||||
void onChangedPymentethodWallet(bool? value) {
|
||||
isWalletCheced = !isWalletCheced;
|
||||
isWalletCheced ? isCashCheced = false : isCashCheced = true;
|
||||
void onChangedPaymentMethodWallet(bool? value) {
|
||||
isWalletChecked = !isWalletChecked;
|
||||
isWalletChecked ? isCashChecked = false : isCashChecked = true;
|
||||
update();
|
||||
}
|
||||
|
||||
void onChangedPymentethodCash(bool? value) {
|
||||
isCashCheced = !isCashCheced;
|
||||
isCashCheced ? isWalletCheced = false : isWalletCheced = true;
|
||||
void onChangedPaymentMethodCash(bool? value) {
|
||||
isCashChecked = !isCashChecked;
|
||||
isCashChecked ? isWalletChecked = false : isWalletChecked = true;
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user