Skip to content

Commit

Permalink
changelog:
Browse files Browse the repository at this point in the history
changes in User Playlists feature
  • Loading branch information
gokadzev committed Jun 22, 2022
1 parent 7449b9d commit 80d310d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lib/API/musify.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,15 @@ Future<List<dynamic>> getUserPlaylists() async {
return playlistsByUser;
}

addUserPlaylist(playlistId) {
addUserPlaylist(String playlistId) {
if (playlistId.length != 0) {
print("okrr");
}
userPlaylists.add(playlistId);
addOrUpdateData("user", "playlists", userPlaylists);
}

removeUserPlaylist(playlistId) {
removeUserPlaylist(String playlistId) {
userPlaylists.remove(playlistId.toString());
addOrUpdateData("user", "playlists", userPlaylists);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/userPlaylistsPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class _UserPlaylistsPageState extends State<UserPlaylistsPage> {
content: Stack(
children: <Widget>[
TextField(
decoration: const InputDecoration.collapsed(
decoration: const InputDecoration(
hintText: 'Youtube Playlist ID',
),
onChanged: (value) {
Expand Down

0 comments on commit 80d310d

Please sign in to comment.