Skip to content

Commit

Permalink
Improve: Improved the playlist page code
Browse files Browse the repository at this point in the history
  • Loading branch information
gokadzev committed Nov 15, 2023
1 parent a8d9528 commit b7781d3
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions lib/screens/playlist_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,14 @@ class _PlaylistPageState extends State<PlaylistPage> {
_isLoading = true;
fetch().then((List fetchedList) {
if (!mounted) return;
if (fetchedList.isEmpty) {
setState(() {
_isLoading = false;
setState(() {
_isLoading = false;
if (fetchedList.isEmpty) {
_hasMore = false;
});
} else {
setState(() {
_isLoading = false;
} else {
_songsList.addAll(fetchedList);
});
}
}
});
});
}

Expand Down

0 comments on commit b7781d3

Please sign in to comment.