Skip to content
Snippets Groups Projects
Commit 53dd42db authored by Daniel Furaev's avatar Daniel Furaev
Browse files

old search

parent 06d645d2
No related branches found
No related tags found
No related merge requests found
......@@ -79,12 +79,14 @@ class SearchPage extends State<StateSearcgPage> {
}
updateList(String searchedString) async {
songs = List.empty(growable: true);
if (searchedString.length >= 3) {
var searchList = await spotifyApi.search(searchedString);
for (var element in searchList) {
songs.add(element);
}
} else if (searchedString.isEmpty) {
songs = List.empty(growable: true);
}
}
Future<void> play(String songId) async {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment