25-1/25/1-secure and links

This commit is contained in:
Hamza-Ayed
2025-01-25 00:02:17 +03:00
parent 92861a8fc0
commit 46709df1e6
17 changed files with 295 additions and 113 deletions

View File

@@ -24,16 +24,16 @@ class ConnectWidget extends StatelessWidget {
captainWalletController.getCaptainWalletFromBuyPoints();
return Center(
child: GetBuilder<HomeCaptainController>(
builder: (homeCaptainController) => double.parse(encryptionHelper
.decryptData(captainWalletController.totalPoints)) <
builder: (homeCaptainController) => double.parse(
(captainWalletController.totalPoints)) <
-300
? CupertinoButton(
onPressed: () {
Get.defaultDialog(
// backgroundColor: CupertinoColors.destructiveRed,
barrierDismissible: false,
title: double.parse(encryptionHelper.decryptData(
captainWalletController.totalPoints)) <
title: double.parse(
(captainWalletController.totalPoints)) <
-300
? 'You dont have Points'.tr
: 'You Are Stopped For this Day !'.tr,
@@ -42,9 +42,8 @@ class ConnectWidget extends StatelessWidget {
children: [
IconButton(
onPressed: () async {
double.parse(encryptionHelper.decryptData(
captainWalletController
.totalPoints)) <
double.parse((captainWalletController
.totalPoints)) <
-300
? await Get.find<TextToSpeechController>()
.speakText(
@@ -58,9 +57,8 @@ class ConnectWidget extends StatelessWidget {
icon: const Icon(Icons.headphones),
),
Text(
double.parse(encryptionHelper.decryptData(
captainWalletController
.totalPoints)) <
double.parse((captainWalletController
.totalPoints)) <
-300
? 'You must be recharge your Account'.tr
: 'You Refused 3 Rides this Day that is the reason \nSee you Tomorrow!'
@@ -69,8 +67,8 @@ class ConnectWidget extends StatelessWidget {
),
],
),
confirm: double.parse(encryptionHelper.decryptData(
captainWalletController.totalPoints)) <
confirm: double.parse(
(captainWalletController.totalPoints)) <
-300
? MyElevatedButton(
title: 'Recharge my Account'.tr,