Add distance to map lat lang

dev
suresh 2 years ago
parent c6a021cc98
commit dc4765d232

@ -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++){

@ -102,7 +102,6 @@ class AppSettings {
//api urls //api urls
static String host = 'http://35.207.198.4:3000/api/'; static String host = 'http://35.207.198.4:3000/api/';
static String loginUrl = host + 'sendSms'; static String loginUrl = host + 'sendSms';
static String deliveryboyloginUrl = host + 'deliveryboylogin'; static String deliveryboyloginUrl = host + 'deliveryboylogin';
static String deliveryboybookingsUrl = host + 'getdeliveryboybookings'; static String deliveryboybookingsUrl = host + 'getdeliveryboybookings';

@ -53,6 +53,9 @@ dev_dependencies:
flutter_icons: flutter_icons:
image_path_ios: 'images/appiconn.png' image_path_ios: 'images/appiconn.png'
image_path_android: 'images/appiconn.png' image_path_android: 'images/appiconn.png'

Loading…
Cancel
Save