25-1/28/1

This commit is contained in:
Hamza-Ayed
2025-01-28 01:03:04 +03:00
parent 46709df1e6
commit 9b0650b118
84 changed files with 416 additions and 830 deletions

View File

@@ -368,11 +368,10 @@ class InviteScreen extends StatelessWidget {
}
Widget _buildInvitationItem(BuildContext context, int index) {
int countOfInvitDriver = int.tryParse(encryptionHelper
.decryptData(controller.driverInvitationData[index]
['countOfInvitDriver'])
?.toString() ??
'0') ??
int countOfInvitDriver = int.tryParse(
(controller.driverInvitationData[index]['countOfInvitDriver'])
?.toString() ??
'0') ??
0;
double progressValue = (countOfInvitDriver / 100.0).clamp(0.0, 1.0);
@@ -428,11 +427,9 @@ class InviteScreen extends StatelessWidget {
// Extracting the data from the sample JSON-like structure
var invitation = controller.driverInvitationDataToPassengers[index];
int countOfInvitDriver = int.tryParse(encryptionHelper
.decryptData(invitation['countOfInvitDriver'])
?.toString() ??
'0') ??
0;
int countOfInvitDriver =
int.tryParse((invitation['countOfInvitDriver'])?.toString() ?? '0') ??
0;
double progressValue = (countOfInvitDriver / 10.0).clamp(0.0, 1.0);
return GestureDetector(
@@ -506,10 +503,9 @@ class InviteScreen extends StatelessWidget {
_buildStatItem(
context,
"Total Invites".tr,
encryptionHelper
.decryptData(controller.driverInvitationDataToPassengers[0]
['countOfInvitDriver'])
.toString(),
(controller.driverInvitationDataToPassengers[0]
['countOfInvitDriver']
.toString()),
),
_buildStatItem(
context,