25-1/25/1-secure and links
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user