25-5-30/1

This commit is contained in:
Hamza-Ayed
2025-05-30 16:58:17 +03:00
parent bdf380b925
commit cf8966ea29
41 changed files with 538 additions and 904 deletions

View File

@@ -90,10 +90,7 @@ class LoginPage extends StatelessWidget {
User? user = await authController.signInWithApple();
if (user != null) {
box.write(BoxName.passengerID, user.uid);
box.write(
BoxName.email,
EncryptionHelper.instance
.encryptData(user.email.toString()));
box.write(BoxName.email, (user.email.toString()));
await controller.loginUsingCredentials(
box.read(BoxName.passengerID).toString(),
box.read(BoxName.email).toString(),

View File

@@ -35,7 +35,7 @@ class VerifyEmailPage extends StatelessWidget {
SizedBox(
width: 100,
child: TextField(
controller: controller.verfyCode,
controller: controller.verifyCode,
decoration: InputDecoration(
labelStyle: AppStyle.title,
border: const OutlineInputBorder(),

View File

@@ -1,3 +1,4 @@
import 'package:Tripz/views/auth/sms_verfy_page.dart';
import 'package:flutter/services.dart';
import 'package:flutter/material.dart';
import 'package:flutter_font_icons/flutter_font_icons.dart';
@@ -55,14 +56,14 @@ GetBuilder<MapPassengerController> leftMainMenuIcons() {
tooltip: 'VIP Waiting Page', // More descriptive tooltip
),
// const SizedBox(width: 8),
_buildIconButtonWithAnimation(
controller: controller,
icon: Octicons.screen_full,
onPressed: () async {
Get.to(() => TestPage());
},
tooltip: 'Recent Locations', // More descriptive tooltip
),
// _buildIconButtonWithAnimation(
// controller: controller,
// icon: Octicons.screen_full,
// onPressed: () async {
// Get.to(() => TestPage());
// },
// tooltip: 'Recent Locations', // More descriptive tooltip
// ),
],
),
),
@@ -80,7 +81,9 @@ class TestPage extends StatelessWidget {
appBar: AppBar(),
body: Center(
child: TextButton(
onPressed: () async {},
onPressed: () async {
Get.to(SmsSignupEgypt());
},
child: Text(
"Text Button",
),

View File

@@ -459,7 +459,7 @@ class MainBottomMenuMap extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'${'Where to'.tr} ${EncryptionHelper.instance.decryptData(box.read(BoxName.name).toString().split(' ')[0])} ',
'${'Where to'.tr} ${(box.read(BoxName.name).toString().split(' ')[0])} ',
style: AppStyle.subtitle),
// if (controller.noCarString)
// Text('Nearest Car: ~'.tr,

View File

@@ -72,7 +72,7 @@ class NewMainBottomSheet extends StatelessWidget {
children: [
const Icon(Icons.search),
Text(
"${"Where you want go ".tr}${EncryptionHelper.instance.decryptData(box.read(BoxName.name).toString().split(' ')[0]).toString()} ?",
"${"Where you want go ".tr}${(box.read(BoxName.name).toString().split(' ')[0]).toString()} ?",
),
],
),

View File

@@ -222,9 +222,7 @@ class CardTripzWallet extends StatelessWidget {
Align(
alignment: Alignment.bottomRight,
child: Text(
EncryptionHelper.instance
.decryptData(
box.read(BoxName.name).toString().split(' ')[0])
(box.read(BoxName.name).toString().split(' ')[0])
.toString(),
style: AppStyle.title.copyWith(
color: CupertinoColors.secondaryLabel,

View File

@@ -54,7 +54,7 @@ class PassengerProfilePage extends StatelessWidget {
),
trailing: const Icon(Icons.arrow_forward_ios),
subtitle: Text(
'${EncryptionHelper.instance.decryptData(controller.prfoileData['first_name'])} ${EncryptionHelper.instance.decryptData(controller.prfoileData['last_name'])}'),
'${(controller.prfoileData['first_name'])} ${(controller.prfoileData['last_name'])}'),
onTap: () {
controller.updatField(
'first_name', TextInputType.name);
@@ -70,9 +70,8 @@ class PassengerProfilePage extends StatelessWidget {
width: 35,
),
trailing: const Icon(Icons.arrow_forward_ios),
subtitle: Text(EncryptionHelper.instance
.decryptData(controller.prfoileData['gender']
.toString())),
subtitle: Text((controller.prfoileData['gender']
.toString())),
onTap: () {
Get.defaultDialog(
title: 'Update Gender'.tr,
@@ -85,10 +84,7 @@ class PassengerProfilePage extends StatelessWidget {
controller.updateColumn({
'id': controller.prfoileData['id']
.toString(),
'gender': EncryptionHelper
.instance
.encryptData(
controller.gender),
'gender': (controller.gender),
});
Get.back();
},
@@ -183,10 +179,9 @@ class PassengerProfilePage extends StatelessWidget {
size: 35,
),
trailing: const Icon(Icons.arrow_forward_ios),
subtitle: Text(EncryptionHelper.instance
.decryptData(
controller.prfoileData['sosPhone'])
.toString()),
subtitle: Text(
(controller.prfoileData['sosPhone'])
.toString()),
onTap: () async {
await controller.updatField(
'sosPhone', TextInputType.phone);