25-2/24/1
This commit is contained in:
@@ -80,7 +80,7 @@ class HistoryCaptain extends StatelessWidget {
|
||||
.navTitleTextStyle,
|
||||
),
|
||||
Text(
|
||||
encryptionHelper
|
||||
EncryptionHelper.instance
|
||||
.decryptData(list['order_id']),
|
||||
style: CupertinoTheme.of(context)
|
||||
.textTheme
|
||||
@@ -108,8 +108,9 @@ class HistoryCaptain extends StatelessWidget {
|
||||
),
|
||||
Text(
|
||||
list['status'],
|
||||
style: encryptionHelper.decryptData(
|
||||
list['status']) ==
|
||||
style: EncryptionHelper.instance
|
||||
.decryptData(
|
||||
list['status']) ==
|
||||
'Apply'
|
||||
? CupertinoTheme.of(context)
|
||||
.textTheme
|
||||
@@ -117,7 +118,7 @@ class HistoryCaptain extends StatelessWidget {
|
||||
.copyWith(
|
||||
color: CupertinoColors
|
||||
.systemGreen)
|
||||
: encryptionHelper.decryptData(
|
||||
: EncryptionHelper.instance.decryptData(
|
||||
list['status']) ==
|
||||
'Refused'
|
||||
? CupertinoTheme.of(context)
|
||||
|
||||
@@ -46,7 +46,7 @@ class HistoryDetailsPage extends StatelessWidget {
|
||||
CupertinoButton(
|
||||
onPressed: () {
|
||||
String mapUrl =
|
||||
'https://www.google.com/maps/dir/${encryptionHelper.decryptData(res['start_location'])}/${encryptionHelper.decryptData(res['end_location'])}/';
|
||||
'https://www.google.com/maps/dir/${EncryptionHelper.instance.decryptData(res['start_location'])}/${EncryptionHelper.instance.decryptData(res['end_location'])}/';
|
||||
showInBrowser(mapUrl);
|
||||
},
|
||||
child: Container(
|
||||
@@ -79,24 +79,28 @@ class HistoryDetailsPage extends StatelessWidget {
|
||||
polylineId: const PolylineId('route'),
|
||||
points: [
|
||||
LatLng(
|
||||
double.parse(encryptionHelper
|
||||
double.parse(EncryptionHelper
|
||||
.instance
|
||||
.decryptData(
|
||||
res['start_location'])
|
||||
.toString()
|
||||
.split(',')[0]),
|
||||
double.parse(encryptionHelper
|
||||
double.parse(EncryptionHelper
|
||||
.instance
|
||||
.decryptData(
|
||||
res['start_location'])
|
||||
.toString()
|
||||
.split(',')[1]),
|
||||
),
|
||||
LatLng(
|
||||
double.parse(encryptionHelper
|
||||
double.parse(EncryptionHelper
|
||||
.instance
|
||||
.decryptData(
|
||||
res['end_location'])
|
||||
.toString()
|
||||
.split(',')[0]),
|
||||
double.parse(encryptionHelper
|
||||
double.parse(EncryptionHelper
|
||||
.instance
|
||||
.decryptData(
|
||||
res['end_location'])
|
||||
.toString()
|
||||
@@ -115,7 +119,7 @@ class HistoryDetailsPage extends StatelessWidget {
|
||||
MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
'${'Order ID'.tr} ${encryptionHelper.decryptData(res['id'])}',
|
||||
'${'Order ID'.tr} ${EncryptionHelper.instance.decryptData(res['id'])}',
|
||||
style: CupertinoTheme.of(context)
|
||||
.textTheme
|
||||
.navActionTextStyle,
|
||||
@@ -145,13 +149,13 @@ class HistoryDetailsPage extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
'${'Price is'.tr} ${encryptionHelper.decryptData(res['price_for_driver'])}',
|
||||
'${'Price is'.tr} ${EncryptionHelper.instance.decryptData(res['price_for_driver'])}',
|
||||
style: CupertinoTheme.of(context)
|
||||
.textTheme
|
||||
.textStyle,
|
||||
),
|
||||
Text(
|
||||
'${'Distance is'.tr} ${encryptionHelper.decryptData(res['distance'])} KM',
|
||||
'${'Distance is'.tr} ${EncryptionHelper.instance.decryptData(res['distance'])} KM',
|
||||
style: CupertinoTheme.of(context)
|
||||
.textTheme
|
||||
.textStyle,
|
||||
@@ -210,7 +214,7 @@ class HistoryDetailsPage extends StatelessWidget {
|
||||
),
|
||||
child: Center(
|
||||
child: Text(
|
||||
'${'Passenger Name is'.tr} ${encryptionHelper.decryptData(res['first_name'])} ${encryptionHelper.decryptData(res['last_name'])}',
|
||||
'${'Passenger Name is'.tr} ${EncryptionHelper.instance.decryptData(res['first_name'])} ${EncryptionHelper.instance.decryptData(res['last_name'])}',
|
||||
style: CupertinoTheme.of(context)
|
||||
.textTheme
|
||||
.textStyle,
|
||||
@@ -229,7 +233,7 @@ class HistoryDetailsPage extends StatelessWidget {
|
||||
),
|
||||
child: Center(
|
||||
child: Text(
|
||||
'${'Status is'.tr} ${encryptionHelper.decryptData(res['status'])}',
|
||||
'${'Status is'.tr} ${EncryptionHelper.instance.decryptData(res['status'])}',
|
||||
style: CupertinoTheme.of(context)
|
||||
.textTheme
|
||||
.textStyle,
|
||||
|
||||
@@ -536,7 +536,7 @@ class UserAccountHeader extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
encryptionHelper.decryptData(
|
||||
EncryptionHelper.instance.decryptData(
|
||||
box.read(BoxName.emailDriver),
|
||||
),
|
||||
style: TextStyle(
|
||||
|
||||
@@ -125,7 +125,7 @@ class HelpCaptain extends StatelessWidget {
|
||||
.helpQuestionDate['message'][index];
|
||||
return CupertinoListTile(
|
||||
title: Text(
|
||||
encryptionHelper
|
||||
EncryptionHelper.instance
|
||||
.decryptData(list['helpQuestion']),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
@@ -143,9 +143,9 @@ class HelpCaptain extends StatelessWidget {
|
||||
),
|
||||
onTap: () {
|
||||
helpController.getIndex(
|
||||
int.parse(encryptionHelper
|
||||
int.parse(EncryptionHelper.instance
|
||||
.decryptData(list['id'])),
|
||||
encryptionHelper
|
||||
EncryptionHelper.instance
|
||||
.decryptData(list['helpQuestion']));
|
||||
helpController
|
||||
.getHelpRepley(list['id'].toString());
|
||||
|
||||
@@ -54,7 +54,7 @@ class HelpDetailsReplayPage extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: helpController.status ==
|
||||
'not yet' ||
|
||||
encryptionHelper
|
||||
EncryptionHelper.instance
|
||||
.decryptData(helpController
|
||||
.helpQuestionRepleyDate[
|
||||
'message']['replay'])
|
||||
@@ -65,7 +65,7 @@ class HelpDetailsReplayPage extends StatelessWidget {
|
||||
style: AppStyle.title,
|
||||
)
|
||||
: Text(
|
||||
encryptionHelper
|
||||
EncryptionHelper.instance
|
||||
.decryptData(helpController
|
||||
.helpQuestionRepleyDate[
|
||||
'message']['replay'])
|
||||
|
||||
@@ -106,7 +106,8 @@ GetBuilder<HomeCaptainController> leftMainMenuCaptainIcons() {
|
||||
// child: Builder(builder: (context) {
|
||||
// return IconButton(
|
||||
// onPressed: () async {
|
||||
// Get.to(SmsSignupEgypt());
|
||||
// await storage.deleteAll();
|
||||
// box.erase();
|
||||
// },
|
||||
// icon: const Icon(
|
||||
// FontAwesome5.grin_tears,
|
||||
|
||||
@@ -376,7 +376,7 @@ class _OrderRequestPageState extends State<OrderRequestPage> {
|
||||
'notification.wav');
|
||||
|
||||
controller.refuseOrder(
|
||||
encryptionHelper.encryptData(
|
||||
EncryptionHelper.instance.encryptData(
|
||||
controller.myList[16].toString()),
|
||||
);
|
||||
controller.addRideToNotificationDriverString(
|
||||
|
||||
@@ -74,8 +74,9 @@ class CaptainsCars extends StatelessWidget {
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 4),
|
||||
child: Text(
|
||||
encryptionHelper.decryptData(
|
||||
car['car_plate']),
|
||||
EncryptionHelper.instance
|
||||
.decryptData(
|
||||
car['car_plate']),
|
||||
style: AppStyle.title,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -95,7 +95,7 @@ GetBuilder<AI> egyptCarLicenceFront() {
|
||||
IconButton(
|
||||
onPressed: () async {
|
||||
ai.allMethodForAI(
|
||||
encryptionHelper.decryptData(
|
||||
EncryptionHelper.instance.decryptData(
|
||||
ai.prompts[3]['prompt'].toString()),
|
||||
AppLink.uploadEgypt,
|
||||
'car_front');
|
||||
@@ -143,7 +143,7 @@ GetBuilder<AI> egyptCarLicenceFront() {
|
||||
child: InkWell(
|
||||
onTap: () async {
|
||||
ai.allMethodForAINewCar(
|
||||
encryptionHelper
|
||||
EncryptionHelper.instance
|
||||
.decryptData(ai.prompts[3]['prompt'].toString()),
|
||||
AppLink.uploadEgypt1,
|
||||
'car_front',
|
||||
@@ -214,7 +214,7 @@ GetBuilder<AI> egyptCarLicenceBack() {
|
||||
IconButton(
|
||||
onPressed: () async {
|
||||
ai.allMethodForAI(
|
||||
encryptionHelper.decryptData(
|
||||
EncryptionHelper.instance.decryptData(
|
||||
ai.prompts[4]['prompt'].toString()),
|
||||
AppLink.uploadEgypt,
|
||||
'car_back');
|
||||
@@ -287,7 +287,7 @@ GetBuilder<AI> egyptCarLicenceBack() {
|
||||
child: InkWell(
|
||||
onTap: () async {
|
||||
ai.allMethodForAI(
|
||||
encryptionHelper
|
||||
EncryptionHelper.instance
|
||||
.decryptData(ai.prompts[4]['prompt'].toString()),
|
||||
AppLink.uploadEgypt,
|
||||
'car_back');
|
||||
|
||||
@@ -73,34 +73,41 @@ class ProfileCaptain extends StatelessWidget {
|
||||
driverId:
|
||||
controller.captainProfileData['driverID'] ??
|
||||
'',
|
||||
name: encryptionHelper.decryptData((controller
|
||||
.captainProfileData['first_name']) ??
|
||||
'') +
|
||||
name: EncryptionHelper.instance.decryptData(
|
||||
(controller.captainProfileData[
|
||||
'first_name']) ??
|
||||
'') +
|
||||
' ' +
|
||||
encryptionHelper.decryptData((controller
|
||||
.captainProfileData['last_name']) ??
|
||||
''),
|
||||
phoneNumber: encryptionHelper.decryptData(
|
||||
controller.captainProfileData['phone']) ??
|
||||
EncryptionHelper.instance.decryptData(
|
||||
(controller.captainProfileData[
|
||||
'last_name']) ??
|
||||
''),
|
||||
phoneNumber: EncryptionHelper.instance
|
||||
.decryptData(controller
|
||||
.captainProfileData['phone']) ??
|
||||
'',
|
||||
email: encryptionHelper.decryptData(
|
||||
email: EncryptionHelper.instance.decryptData(
|
||||
controller.captainProfileData['email']) ??
|
||||
'',
|
||||
birthdate: encryptionHelper.decryptData(controller
|
||||
.captainProfileData['birthdate']) ??
|
||||
birthdate: EncryptionHelper.instance.decryptData(
|
||||
controller
|
||||
.captainProfileData['birthdate']) ??
|
||||
'',
|
||||
gender: encryptionHelper.decryptData(controller
|
||||
.captainProfileData['gender']) ??
|
||||
gender: EncryptionHelper.instance.decryptData(
|
||||
controller
|
||||
.captainProfileData['gender']) ??
|
||||
'',
|
||||
education: encryptionHelper.decryptData(controller
|
||||
.captainProfileData['education']) ??
|
||||
education: EncryptionHelper.instance.decryptData(
|
||||
controller
|
||||
.captainProfileData['education']) ??
|
||||
'',
|
||||
carMake:
|
||||
controller.captainProfileData['make'] ?? '',
|
||||
carModel:
|
||||
controller.captainProfileData['model'] ?? '',
|
||||
carPlate: encryptionHelper.decryptData(controller
|
||||
.captainProfileData['car_plate']) ??
|
||||
carPlate: EncryptionHelper.instance.decryptData(
|
||||
controller
|
||||
.captainProfileData['car_plate']) ??
|
||||
'',
|
||||
carColor:
|
||||
controller.captainProfileData['color'] ?? '',
|
||||
|
||||
Reference in New Issue
Block a user