From d2b9ca35479bbc0b3df9e8d79014471937132fe8 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Sun, 15 Jan 2023 19:18:53 +0100 Subject: [PATCH] Now good URL for Location DB and server --- .idea/libraries/Dart_Packages.xml | 436 +++++++----------- .idea/libraries/Dart_SDK.xml | 38 +- .../lib/services/position/location.dart | 6 +- 3 files changed, 201 insertions(+), 279 deletions(-) diff --git a/.idea/libraries/Dart_Packages.xml b/.idea/libraries/Dart_Packages.xml index 555e605..a004e15 100644 --- a/.idea/libraries/Dart_Packages.xml +++ b/.idea/libraries/Dart_Packages.xml @@ -2,801 +2,721 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/libraries/Dart_SDK.xml b/.idea/libraries/Dart_SDK.xml index 6ae284f..3dbed52 100644 --- a/.idea/libraries/Dart_SDK.xml +++ b/.idea/libraries/Dart_SDK.xml @@ -1,25 +1,25 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/Sources/dafl_project_flutter/lib/services/position/location.dart b/Sources/dafl_project_flutter/lib/services/position/location.dart index bd1b4e0..5109178 100644 --- a/Sources/dafl_project_flutter/lib/services/position/location.dart +++ b/Sources/dafl_project_flutter/lib/services/position/location.dart @@ -1,3 +1,5 @@ +import 'dart:developer'; + import 'package:dafl_project_flutter/model/spot.dart'; import 'package:geolocator/geolocator.dart'; import 'package:http/http.dart' as http; @@ -8,7 +10,7 @@ import '../../main.dart'; class Location { static Future> sendCurrentLocation() async { Uri uri = Uri.parse( - "http://82.216.56.128/phpmyadmin/dafl/insertAndMakeListUser.php"); + "http://89.83.53.34/phpmyadmin/dafl/insertAndMakeListUser.php"); LocationPermission permission = await Geolocator.checkPermission(); if (permission == LocationPermission.denied) { @@ -29,7 +31,7 @@ class Location { "longitude": current.longitude.toString(), "idMusic": actualSong, }); - print("echo"); + log("echo"); var data = jsonDecode(response.body); Map spotsData = {}; List spots = [];