Skip to content

Commit

Permalink
initial commit + pop up button refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
o-ifeanyi committed Sep 24, 2020
1 parent 47554d3 commit f54a4b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/models/playListDB.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,10 @@ class PlayListDB extends ChangeNotifier {
if (db.values.length != 0) {
playList.clear();
for (var each in db.values) {
// createplaylist should always be first
if (each['name'] == 'Create playlist') {
playList.insert(0, each);
// followed by favourites
} else if (each['name'] == 'Favourites') {
playList.insert(1, each);
} else {
Expand Down

0 comments on commit f54a4b4

Please sign in to comment.