4/3/2
This commit is contained in:
@@ -109,9 +109,9 @@ class MapDriverController extends GetxController {
|
||||
CameraUpdate.newLatLng(Get.find<LocationController>().myLocation),
|
||||
);
|
||||
// Set up a timer or interval to trigger the marker update every 3 seconds.
|
||||
timer = Timer.periodic(const Duration(seconds: 1), (_) {
|
||||
updateMarker();
|
||||
});
|
||||
// timer = Timer.periodic(const Duration(seconds: 1), (_) {
|
||||
// updateMarker();
|
||||
// });
|
||||
}
|
||||
|
||||
void changeStatusDriver() {
|
||||
@@ -598,6 +598,7 @@ class MapDriverController extends GetxController {
|
||||
progressTimerRideBegin = i / durationOfRide;
|
||||
remainingTimeTimerRideBegin = durationOfRide - i;
|
||||
remainingTimeTimerRideBegin < 60 ? driverEndPage = 160 : 100;
|
||||
updateMarker();
|
||||
if (remainingTimeTimerRideBegin < 120) {
|
||||
// to make driver available on last 2 minute in his trip
|
||||
box.write(BoxName.statusDriverLocation, 'off');
|
||||
@@ -828,7 +829,7 @@ class MapDriverController extends GetxController {
|
||||
late Duration durationToAdd;
|
||||
int hours = 0;
|
||||
int minutes = 0;
|
||||
late String carType = '';
|
||||
late String carType;
|
||||
late String kazan;
|
||||
@override
|
||||
void onInit() async {
|
||||
|
||||
Reference in New Issue
Block a user