mobile: Allow removing tracks from the playlist

This commit is contained in:
Elias Projahn 2020-04-26 18:54:49 +02:00
parent 37a1353297
commit 1c64d56346
2 changed files with 54 additions and 3 deletions

View file

@ -183,6 +183,24 @@ class _ProgramScreenState extends State<ProgramScreen> {
onTap: () {
backend.player.skipTo(index);
},
onLongPress: () {
showDialog(
context: context,
builder: (context) {
return SimpleDialog(
children: <Widget>[
ListTile(
title: Text('Remove from playlist'),
onTap: () {
backend.player.removeTrack(index);
Navigator.pop(context);
},
),
],
);
}
);
},
);
},
);