-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mpris): MPRIS metadata are now updated in realtime
refactor(download-button): use download provider and queue instead of custom logic
- Loading branch information
Showing
7 changed files
with
103 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:spotify/spotify.dart'; | ||
|
||
class ReplaceDownloadedFileDialog extends StatelessWidget { | ||
final Track track; | ||
const ReplaceDownloadedFileDialog({required this.track, Key? key}) | ||
: super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return AlertDialog( | ||
title: Text("Track ${track.name} Already Exists"), | ||
content: | ||
const Text("Do you want to replace the already downloaded track?"), | ||
actions: [ | ||
TextButton( | ||
child: const Text("No"), | ||
onPressed: () { | ||
Navigator.pop(context, false); | ||
}, | ||
), | ||
TextButton( | ||
child: const Text("Yes"), | ||
onPressed: () { | ||
Navigator.pop(context, true); | ||
}, | ||
) | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.