diff --git a/Sources/dafl_project_flutter/lib/position/location.dart b/Sources/dafl_project_flutter/lib/position/location.dart index 94cce8d..df1d6fe 100644 --- a/Sources/dafl_project_flutter/lib/position/location.dart +++ b/Sources/dafl_project_flutter/lib/position/location.dart @@ -28,8 +28,8 @@ class Location { } static Future getData() async { + String actualUser = MyApp.controller.currentUser.usernameDafl; Uri uri = Uri.parse("http://89.83.53.34/phpmyadmin/dafldev/distance.php"); - String actualUser = MyApp().controller.currentUser.usernameDafl; http.Response response = await http.post(uri, body : { "id" : actualUser.toString(), });