diff --git a/Sources/dafl_project_flutter/android/app/src/main/AndroidManifest.xml b/Sources/dafl_project_flutter/android/app/src/main/AndroidManifest.xml index b3767c7..2d031a3 100644 --- a/Sources/dafl_project_flutter/android/app/src/main/AndroidManifest.xml +++ b/Sources/dafl_project_flutter/android/app/src/main/AndroidManifest.xml @@ -33,7 +33,6 @@ android:name="flutterEmbedding" android:value="2" /> - - + diff --git a/Sources/dafl_project_flutter/lib/api/api.dart b/Sources/dafl_project_flutter/lib/api/api.dart index 5e2ced2..a3e9dcb 100644 --- a/Sources/dafl_project_flutter/lib/api/api.dart +++ b/Sources/dafl_project_flutter/lib/api/api.dart @@ -57,13 +57,13 @@ class Api { } getCurrentlyPlayingTrack() async { - var url = - Uri.https('api.spotify.com', 'v1/me/player/currently-playing', {}); + var url = Uri.https('api.spotify.com', 'v1/me/player/currently-playing'); var response = await client.post(url, headers: { 'Authorization': '$token_type $access_token', 'Content-Type': 'application/json' }); // Problem while trying to get body + print(response.body); } // for state value