This commit is contained in:
Hamza-Ayed
2025-02-04 23:11:40 +03:00
parent b11c999bcc
commit a09bfbd646
4 changed files with 17 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
import 'package:Tripz/constant/style.dart';
import 'package:Tripz/controller/functions/encrypt_decrypt.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
@@ -334,8 +335,10 @@ void showPaymentOptions(BuildContext context, PaymentController controller) {
color: CupertinoColors.activeGreen)),
onPressed: () async {
Get.back();
box.write(BoxName.phoneWallet,
controller.walletphoneController.text);
box.write(
BoxName.phoneWallet,
encryptionHelper.encryptData(
controller.walletphoneController.text));
Toast.show(
context,
'Phone Wallet Saved Successfully'.tr,