10/15/1
This commit is contained in:
@@ -119,6 +119,12 @@ class HomeCaptain extends StatelessWidget {
|
||||
'Total Duration: ${homeCaptainController.calculateTotalDuration()} seconds',
|
||||
style: const TextStyle(fontSize: 20),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
homeCaptainController.sendSMSToRecipents(
|
||||
'hi from Sefer', ['+962798583052']);
|
||||
},
|
||||
child: const Text('send msg')),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -10,8 +10,8 @@ import '../../constant/style.dart';
|
||||
import '../../controller/functions/location_controller.dart';
|
||||
import '../home/map_widget.dart/passenger_info_window.dart';
|
||||
|
||||
class PassengerLocationDirection extends StatelessWidget {
|
||||
PassengerLocationDirection({super.key});
|
||||
class PassengerLocationMapPage extends StatelessWidget {
|
||||
PassengerLocationMapPage({super.key});
|
||||
final LocationController locationController = Get.put(LocationController());
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -181,16 +181,16 @@ class OrderRequestPage extends StatelessWidget {
|
||||
box.read(BoxName.tokenDriver).toString(),
|
||||
];
|
||||
// print(bodyToPassenger);
|
||||
FirebaseMessagesController()
|
||||
.sendNotificationToPassengerToken(
|
||||
'Apply Ride',
|
||||
arguments['DriverList'][9].toString(),
|
||||
arguments['DriverList'][9].toString(),
|
||||
// box.read(BoxName.tokenDriver).toString(),
|
||||
bodyToPassenger,
|
||||
);
|
||||
// FirebaseMessagesController()
|
||||
// .sendNotificationToPassengerToken(
|
||||
// 'Apply Ride',
|
||||
// arguments['DriverList'][9].toString(),
|
||||
// arguments['DriverList'][9].toString(),
|
||||
// // box.read(BoxName.tokenDriver).toString(),
|
||||
// bodyToPassenger,
|
||||
// );
|
||||
Get.back();
|
||||
Get.to(() => PassengerLocationDirection(), arguments: {
|
||||
Get.to(() => PassengerLocationMapPage(), arguments: {
|
||||
'passengerLocation': myList[0].toString(),
|
||||
'Duration': myList[4].toString(),
|
||||
'Distance': myList[5].toString(),
|
||||
|
||||
Reference in New Issue
Block a user