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

@@ -1,4 +1,5 @@
import 'package:sefer_driver/constant/style.dart';
import 'package:sefer_driver/controller/functions/encrypt_decrypt.dart';
import 'package:sefer_driver/controller/home/payment/captain_wallet_controller.dart';
import 'package:sefer_driver/views/auth/captin/criminal_documents_page.dart';
import 'package:sefer_driver/views/widgets/elevated_btn.dart';
@@ -79,8 +80,9 @@ class ProfileCaptain extends StatelessWidget {
''),
phoneNumber:
controller.captainProfileData['phone'] ?? '',
email:
controller.captainProfileData['email'] ?? '',
email: encryptionHelper.decryptData(
controller.captainProfileData['email']) ??
'',
birthdate:
controller.captainProfileData['birthdate'] ??
'',
@@ -105,8 +107,8 @@ class ProfileCaptain extends StatelessWidget {
expirationDate: controller
.captainProfileData['expiration_date'] ??
'',
ratingCount: controller
.captainProfileData['ratingCount'] ??
ratingCount: int.parse(controller
.captainProfileData['ratingCount']) ??
0,
ratingDriver: controller
.captainProfileData['ratingDriver'] !=
@@ -116,7 +118,9 @@ class ProfileCaptain extends StatelessWidget {
.toString()) ??
0
: null,
age: controller.captainProfileData['age'] ?? 0,
age: int.parse(
controller.captainProfileData['age']) ??
0,
),
),
],