|
|
@ -6,7 +6,6 @@ import 'package:flutter_polyline_points/flutter_polyline_points.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
|
|
|
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
|
|
|
import 'package:location/location.dart';
|
|
|
|
import 'package:location/location.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import 'location_controller.dart';
|
|
|
|
import 'location_controller.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -143,9 +142,6 @@ class OrderTrackingPageState extends State<OrderTrackingPage> {
|
|
|
|
// log(result.errorMessage ?? "Something went wrong");
|
|
|
|
// log(result.errorMessage ?? "Something went wrong");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//polulineCoordinates is the List of longitute and latidtude.
|
|
|
|
//polulineCoordinates is the List of longitute and latidtude.
|
|
|
|
double totalDistance = 0;
|
|
|
|
double totalDistance = 0;
|
|
|
|
for(var i = 0; i < polylineCoordinates.length-1; i++){
|
|
|
|
for(var i = 0; i < polylineCoordinates.length-1; i++){
|
|
|
|