Update: 2026-06-13 00:57:17

This commit is contained in:
Hamza-Ayed
2026-06-13 00:57:17 +03:00
parent 7893b2dc07
commit cb1b2d01df
41 changed files with 75392 additions and 9474 deletions

View File

@@ -25,7 +25,7 @@ class ConnectWidget extends StatelessWidget {
child: GetBuilder<HomeCaptainController>(
builder: (homeCaptainController) => double.parse(
(captainWalletController.totalPoints)) <
-200
homeCaptainController.minPointsThreshold
? CupertinoButton(
onPressed: () {
Get.defaultDialog(
@@ -33,7 +33,7 @@ class ConnectWidget extends StatelessWidget {
barrierDismissible: false,
title: double.parse(
(captainWalletController.totalPoints)) <
-200
homeCaptainController.minPointsThreshold
? 'You dont have Points'.tr
: 'You Are Stopped For this Day !'.tr,
titleStyle: AppStyle.title,
@@ -43,7 +43,7 @@ class ConnectWidget extends StatelessWidget {
onPressed: () async {
double.parse((captainWalletController
.totalPoints)) <
-200
homeCaptainController.minPointsThreshold
? await Get.find<TextToSpeechController>()
.speakText(
'You must be recharge your Account'
@@ -58,7 +58,7 @@ class ConnectWidget extends StatelessWidget {
Text(
double.parse((captainWalletController
.totalPoints)) <
-200
homeCaptainController.minPointsThreshold
? 'You must be recharge your Account'.tr
: 'You Refused 3 Rides this Day that is the reason \nSee you Tomorrow!'
.tr,
@@ -68,7 +68,7 @@ class ConnectWidget extends StatelessWidget {
),
confirm: double.parse(
(captainWalletController.totalPoints)) <
-200
homeCaptainController.minPointsThreshold
? MyElevatedButton(
title: 'Recharge my Account'.tr,
onPressed: () {