From 89233c4939941efda250c1bce61c36cdcd5e6736 Mon Sep 17 00:00:00 2001
From: daniel furaev <daniel.furaev@stud.hs-hannover.de>
Date: Mon, 2 Jan 2023 20:54:37 +0100
Subject: [PATCH] ede bekommt kriese

---
 lib/main.dart             | 2 +-
 lib/searchpage.dart       | 6 +++---
 lib/services/spotify.dart | 1 -
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/lib/main.dart b/lib/main.dart
index c12dc3b..933118a 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -59,7 +59,7 @@ class _HUDState extends State<HUD> {
             _title = _titleList[newIndex];
           });
         },
-        children: [
+        children: const [
           HomePage(),
           StateMoodPage(),
           StateSearcgPage(),
diff --git a/lib/searchpage.dart b/lib/searchpage.dart
index 3f19965..f569997 100644
--- a/lib/searchpage.dart
+++ b/lib/searchpage.dart
@@ -70,8 +70,8 @@ class SearchPage extends State<StateSearcgPage> {
     log("abb");
     var searchList = await spotifyApi.search(searchedString);
 
-    //for (var element in searchList) {
-    //  songs.add(element);
-    //}
+    for (var element in searchList) {
+      songs.add(element);
+    }
   }
 }
diff --git a/lib/services/spotify.dart b/lib/services/spotify.dart
index 56b53ce..f7bc1a2 100644
--- a/lib/services/spotify.dart
+++ b/lib/services/spotify.dart
@@ -52,7 +52,6 @@ class Spotify {
         },
       );
 
-      log(response.body);
       final responseJson = json.decode(response.body);
       final items = responseJson['tracks']['items'] as List;
 
-- 
GitLab