import 'package:SEFER/main.dart'; import 'package:flutter/material.dart'; import 'package:flutter_font_icons/flutter_font_icons.dart'; import 'package:get/get.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import '../../../constant/colors.dart'; import '../../../constant/table_names.dart'; import '../../../controller/functions/tts.dart'; import '../../../controller/home/map_passenger_controller.dart'; import '../../../controller/home/vip_waitting_page.dart'; GetBuilder leftMainMenuIcons() { 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 { Get.to(() => VipWaittingPage()); }, icon: const Icon( Octicons.watch, // Replace this with your desired VIP icon 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 { // final result = await sql.getCustomQuery(''' // SELECT * FROM ${TableName.recentLocations} ORDER BY createdAt DESC // '''); // }, // icon: const Icon( // Octicons // .telescope, // Replace this with your desired VIP icon // size: 29, // ), // ), // ), ], ); })), ); }