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