9/29/1
This commit is contained in:
@@ -437,8 +437,12 @@ class PassengerInfoWindow extends StatelessWidget {
|
||||
title: 'I arrive you'.tr,
|
||||
kolor: AppColor.yellowColor,
|
||||
onPressed: () async {
|
||||
if (controller
|
||||
.calculateDistanceBetweenDriverAndPassengerLocation() <
|
||||
// Await the result of the distance calculation
|
||||
double distanceToArrive =
|
||||
await controller
|
||||
.calculateDistanceBetweenDriverAndPassengerLocation();
|
||||
|
||||
if (distanceToArrive <
|
||||
40) {
|
||||
FirebaseMessagesController()
|
||||
.sendNotificationToPassengerToken(
|
||||
|
||||
Reference in New Issue
Block a user