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

@@ -1,6 +1,7 @@
import 'package:sefer_driver/constant/box_name.dart';
import 'package:sefer_driver/constant/colors.dart';
import 'package:sefer_driver/constant/style.dart';
import 'package:sefer_driver/controller/functions/encrypt_decrypt.dart';
import 'package:sefer_driver/main.dart';
import 'package:sefer_driver/views/widgets/my_scafold.dart';
import 'package:sefer_driver/views/widgets/mycircular.dart';
@@ -73,7 +74,8 @@ class CaptainsCars extends StatelessWidget {
padding: const EdgeInsets.symmetric(
horizontal: 4),
child: Text(
car['car_plate'],
encryptionHelper.decryptData(
car['car_plate']),
style: AppStyle.title,
),
),

View File

@@ -73,31 +73,35 @@ class ProfileCaptain extends StatelessWidget {
driverId:
controller.captainProfileData['driverID'] ??
'',
name: controller
.captainProfileData['first_name'] +
name: encryptionHelper.decryptData((controller
.captainProfileData['first_name']) ??
'') +
' ' +
(controller.captainProfileData['last_name'] ??
encryptionHelper.decryptData((controller
.captainProfileData['last_name']) ??
''),
phoneNumber:
controller.captainProfileData['phone'] ?? '',
phoneNumber: encryptionHelper.decryptData(
controller.captainProfileData['phone']) ??
'',
email: encryptionHelper.decryptData(
controller.captainProfileData['email']) ??
'',
birthdate:
controller.captainProfileData['birthdate'] ??
'',
gender:
controller.captainProfileData['gender'] ?? '',
education:
controller.captainProfileData['education'] ??
'',
birthdate: encryptionHelper.decryptData(controller
.captainProfileData['birthdate']) ??
'',
gender: encryptionHelper.decryptData(controller
.captainProfileData['gender']) ??
'',
education: encryptionHelper.decryptData(controller
.captainProfileData['education']) ??
'',
carMake:
controller.captainProfileData['make'] ?? '',
carModel:
controller.captainProfileData['model'] ?? '',
carPlate:
controller.captainProfileData['car_plate'] ??
'',
carPlate: encryptionHelper.decryptData(controller
.captainProfileData['car_plate']) ??
'',
carColor:
controller.captainProfileData['color'] ?? '',
vin: controller.captainProfileData['vin'] ?? '',
@@ -107,8 +111,9 @@ class ProfileCaptain extends StatelessWidget {
expirationDate: controller
.captainProfileData['expiration_date'] ??
'',
ratingCount: int.parse(controller
.captainProfileData['ratingCount']) ??
ratingCount: int.tryParse(controller
.captainProfileData['ratingCount']
.toString()) ??
0,
ratingDriver: controller
.captainProfileData['ratingDriver'] !=
@@ -118,8 +123,9 @@ class ProfileCaptain extends StatelessWidget {
.toString()) ??
0
: null,
age: int.parse(
controller.captainProfileData['age']) ??
age: int.tryParse(controller
.captainProfileData['age']
.toString()) ??
0,
),
),