9/23/1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user