import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import '../../../constant/colors.dart'; import '../../../controller/functions/tts.dart'; import '../../../controller/home/map_passenger_controller.dart'; GetBuilder leftMainMenuIcons() { final textToSpeechController = Get.put(TextToSpeechController()); return GetBuilder( builder: (controller) => Positioned( top: Get.height * .008, left: Get.width * .2, child: Builder(builder: (context) { return Row( children: [ AnimatedContainer( duration: const Duration(microseconds: 200), width: controller.widthMapTypeAndTraffic, decoration: BoxDecoration( border: Border.all(), color: AppColor.secondaryColor, borderRadius: BorderRadius.circular(15)), child: IconButton( onPressed: () { controller.changeMapType(); // Toast.show(context, 'This is a toast message!'); }, icon: const Icon( Icons.satellite_alt, size: 29, ), ), ), const SizedBox( width: 5, ), AnimatedContainer( duration: const Duration(microseconds: 200), width: controller.widthMapTypeAndTraffic, decoration: BoxDecoration( color: AppColor.secondaryColor, border: Border.all(), borderRadius: BorderRadius.circular(15)), child: IconButton( onPressed: () { controller.changeMapTraffic(); // Toast.show(context, 'This is a toast message!'); }, icon: const Icon( Icons.streetview_sharp, size: 29, ), ), ), const SizedBox( width: 5, ), // if (Platform.isIOS) AnimatedContainer( duration: const Duration(microseconds: 200), width: controller.widthMapTypeAndTraffic, decoration: BoxDecoration( color: AppColor.secondaryColor, border: Border.all(), borderRadius: BorderRadius.circular(15)), child: IconButton( onPressed: () { controller.mapController?.animateCamera( CameraUpdate.newLatLng(LatLng( controller.passengerLocation.latitude, controller.passengerLocation.longitude))); }, icon: const Icon( Icons.location_on, size: 29, ), ), ), const SizedBox( width: 5, ), // AnimatedContainer( // duration: const Duration(microseconds: 200), // width: controller.widthMapTypeAndTraffic, // decoration: BoxDecoration( // color: AppColor.secondaryColor, // border: Border.all(), // borderRadius: BorderRadius.circular(15)), // child: IconButton( // onPressed: () async { // FirebaseMessagesController().sendNotificationToAnyWithoutData( // 'Order'.tr, // 'from: ', // // jsonDecode(value)['message'].toString(), // 'dEugS-JOT4Ka5riF4s5TEN:APA91bEDL_W7BuEQGbyL-RMaKiMWDlURXhFuaybe5WurTUV8K5eIooSGe22yY22_U2hEZcfPr46ig1v--l00dbOGiivazxvmTyhUyQQW6lJsuIN-wordGtBxtREyeYtEKvxIa1J4ApEu', // 'order.wav' // // polylineCoordinates.toString() // ); // // print(box.read(BoxName.tokenFCM)); // // // }, // icon: const Icon( // Icons.voice_chat, // size: 29, // ), // ), // ), // AnimatedContainer( // duration: const Duration(microseconds: 200), // width: controller.widthMapTypeAndTraffic, // decoration: BoxDecoration( // color: AppColor.secondaryColor, // border: Border.all(), // borderRadius: BorderRadius.circular(15)), // child: IconButton( // onPressed: () async { // Get.to(SmsSignupEgypt()); // List d = [ // "30.003028,31.2419628", // "30.0955661,31.2665336", // "160.00", // "25.92", // "1488", // "16.93", // "114243034311436865474", // "113172279072358305645", // "hamza ayed", // "rlMbi4Hc8L1STMPE99iPKqK4Gddwv8r9qZOCadsz9qTEJZ6KLEE9ruTJI6N8dKfK4CXez5pme5WIs14-1QGo29s07fQOniZgIlJV5XFL3yqzPRSUmn3", // "+201023248456", // "1 min", // "1 m", // "false", // "QwUMoyUtZ0J3oR6yXKUavrB_gBl9npUZe-qZtax-Raq4QBbdKv0AmtLKm0BfBd6N_592HBv4CVa41ii4122W3hr-BCUKKzJhzZcK8m0YjbWbtpvgJRD8uD_nuMk9", // "0", // "238", // "false", // "114243034311436865474", // "1488", // "startEnd", // "30.049307749732176,31.274291574954987", // "", // "", // "", // "", // "17.73", // "0", // "hamzaayedflutter@gmail.com", // "الفسطاط، حي مصر القديمة، مصر", // " الزاوية الحمراء، محافظة القاهرة، مصر", // "Speed", // "8", // "5.00" // ]; // FirebaseMessagesController() // .sendNotificationToAnyWithoutData( // 'Cancel'.tr, // "How much longer will you be?".tr, // 'fKBBB4_1R0q18-byySHUeG:APA91bHk2RmjjMt6eKr7KQnqh4CK02yW3H5E8g_beVcQFgiCG50j9KCtSU1O8PtvS_gA5xuJLhaorDV9AeslcyLFJFf302tICKMiKgsDP5pWkF5WXNw0-4NsoD-BnJxf0-Do9Vs1Zbpq', // // d, // 'ding.wav', // ); // Get.to(SmsSignupEgypt()); // Log.print( // 'getUpdatedRideForDriverApply: ${Get.find().driverToken}'); // Get.find() // .firstTimeRunToGetCoupon('SEFER25', '1 WEEEK', '25%'); // }, // icon: const Icon( // Icons.chat, // size: 29, // ), // ), // ), // // AnimatedContainer( // duration: const Duration(microseconds: 200), // width: controller.widthMapTypeAndTraffic, // decoration: BoxDecoration( // color: AppColor.secondaryColor, // border: Border.all(), // borderRadius: BorderRadius.circular(15)), // child: IconButton( // onPressed: () async { // await CRUD().allMethodForAI( // 'name,fullName,address,idNumber,cardId,dob', // AppLink.uploadEgypt, // 'idFront'); // // // await ImageController().choosImage( // // 'https://api.sefer.live/sefer/uploadEgypt.php', // // 'FrontId'); // AC credentials = AC(); // String apiKey = 'zjujl_qvo_fwjfgjlXrXlBl'; // String convertedStringN = credentials.c( // credentials.c(credentials.c(apiKey, cs), cC), cn); // String retrievedStringS = credentials.r( // credentials.r(credentials.r(convertedStringN, cn), cC), // cs); // // // if (retrievedStringS == apiKey) { // print('convertedStringN --- $convertedStringN'); // print('retrievedStringS ---$retrievedStringS'); // print('same'); // } // // // await Get.find() // // .payWithPayMob(context, '1100', 'EGP'); // // Initiates a payment with a card using the FlutterPaymob instance // // }, // icon: const Icon( // // Get.put(AudioRecorderController()).isRecording // Icons.start, // size: 29, // ), // ), // ), ], ); })), ); }