This commit is contained in:
Hamza-Ayed
2023-09-23 16:39:05 +03:00
parent 9bc121f07a
commit 92b0713811
4 changed files with 43 additions and 16 deletions

View File

@@ -197,6 +197,13 @@ class MapPage extends StatelessWidget {
position: carLocation,
icon: controller.carIcon,
markerId: MarkerId(carLocation.toString())),
for (var carLocation in controller
.driverCarsLocationToPassengerAfterApplied)
Marker(
// anchor: const Offset(4, 4),
position: carLocation,
icon: controller.carIcon,
markerId: MarkerId(carLocation.toString())),
Marker(
markerId: MarkerId('MyLocation'.tr),
position: controller.mylocation,
@@ -287,6 +294,24 @@ class MapPage extends StatelessWidget {
const PaymentMethodPage(),
timerForCancellTripFromPassenger(),
const DriverTimeArrivePassengerPage(),
GetBuilder<MapController>(builder: (controller) {
if (controller.remainingTime == 0
//&&
// controller.newTime1.isBefore(
// controller.currentTime.add(const Duration(minutes: 2)),
// )
) {
return Center(
child: Container(
decoration: AppStyle.boxDecoration,
height: 100,
width: 100,
),
);
} else {
return const SizedBox();
}
}),
],
),
),