25-1/28/1
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||
import '../../../constant/box_name.dart';
|
||||
import '../../../constant/colors.dart';
|
||||
import '../../../constant/table_names.dart';
|
||||
import '../../../controller/functions/encrypt_decrypt.dart';
|
||||
import '../../../controller/functions/tts.dart';
|
||||
import '../../../controller/home/map_passenger_controller.dart';
|
||||
import '../../../controller/home/vip_waitting_page.dart';
|
||||
@@ -15,13 +16,10 @@ GetBuilder<MapPassengerController> leftMainMenuIcons() {
|
||||
return GetBuilder<MapPassengerController>(
|
||||
builder: (controller) => Positioned(
|
||||
top: Get.height * .008,
|
||||
left: box.read(BoxName.lang) != 'ar' ? Get.width * .2 : null,
|
||||
right: box.read(BoxName.lang) != 'ar'
|
||||
? Get.width * .2
|
||||
: null, // Adjust left position for better spacing
|
||||
left: Get.width * .16,
|
||||
right: Get.width * .16, // Adjust left position for better spacing
|
||||
child: Row(
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment.spaceAround, // Distribute space evenly
|
||||
mainAxisAlignment: MainAxisAlignment.center, // Distribute space evenly
|
||||
children: [
|
||||
_buildIconButtonWithAnimation(
|
||||
controller: controller,
|
||||
@@ -62,11 +60,21 @@ GetBuilder<MapPassengerController> leftMainMenuIcons() {
|
||||
// const SizedBox(width: 8),
|
||||
// _buildIconButtonWithAnimation(
|
||||
// controller: controller,
|
||||
// icon: Octicons.telescope,
|
||||
// icon: Octicons.screen_full,
|
||||
// onPressed: () async {
|
||||
// final result = await sql.getCustomQuery('''
|
||||
// SELECT * FROM ${TableName.recentLocations} ORDER BY createdAt DESC
|
||||
// ''');
|
||||
// final plainText = 'Hello, Safar App!';
|
||||
// debugPrint('Plain Text: $plainText');
|
||||
|
||||
// // Encrypt the data
|
||||
// final encryptedData = encryptionHelper.encryptData(plainText);
|
||||
// debugPrint('Encrypted: $encryptedData');
|
||||
|
||||
// // Decrypt the data
|
||||
// final decryptedData = encryptionHelper
|
||||
// .decryptData(encryptedData); // Use the encryptedData variable
|
||||
// debugPrint('Decrypted: $decryptedData');
|
||||
// //kVb4a+11Scs9jQWwzeVfx0PxSDiPWDCuMI/RWYxafMU=
|
||||
// //kVb4a+11Scs9jQWwzeVfx0PxSDiPWDCuMI/RWYxafMU=
|
||||
// },
|
||||
// tooltip: 'Recent Locations', // More descriptive tooltip
|
||||
// ),
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:SEFER/controller/functions/encrypt_decrypt.dart';
|
||||
import 'package:SEFER/views/widgets/my_textField.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -457,7 +458,8 @@ class MainBottomMenuMap extends StatelessWidget {
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text('${'Where to'.tr} ${box.read(BoxName.name)}',
|
||||
Text(
|
||||
'${'Where to'.tr} ${encryptionHelper.decryptData(box.read(BoxName.name).toString().split(' ')[0]).toString()} ${encryptionHelper.decryptData(box.read(BoxName.name).toString().split(' ')[1]).toString()}',
|
||||
style: AppStyle.subtitle),
|
||||
// if (controller.noCarString)
|
||||
// Text('Nearest Car: ~'.tr,
|
||||
|
||||
@@ -5,6 +5,8 @@ import 'package:SEFER/main.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import '../../../controller/functions/encrypt_decrypt.dart';
|
||||
|
||||
class NewMainBottomSheet extends StatelessWidget {
|
||||
const NewMainBottomSheet({super.key});
|
||||
|
||||
@@ -70,7 +72,7 @@ class NewMainBottomSheet extends StatelessWidget {
|
||||
children: [
|
||||
const Icon(Icons.search),
|
||||
Text(
|
||||
"${"Where you want go ".tr}${box.read(BoxName.name)} ?",
|
||||
"${"Where you want go ".tr}${encryptionHelper.decryptData(box.read(BoxName.name).toString().split(' ')[0]).toString()} ?",
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user