mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-08 17:11:30 +02:00
feat: playback queue, preview exclusivity, player bug fixes
- PlaybackController with queue methods for albums/library/playlists - Library tab play builds merged queue (downloaded + local together) - Preview vs main player exclusivity - Preview stops on bottom-nav tab switch - Duration 0:00 fix, deleted track cleanup, Up Next sheet - Animation utilities improvements
This commit is contained in:
1 parent
3a2481e8b2
commit
12fb942f16
10 files changed
+585
-101
No files matched your search
@@ -2,6 +2,7 @@ import 'dart:io';
|
||||
|
||||
import 'package:open_filex/open_filex.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:spotiflac_android/services/music_player_service.dart';
|
||||
import 'package:spotiflac_android/services/platform_bridge.dart';
|
||||
import 'package:spotiflac_android/utils/mime_utils.dart';
|
||||
|
||||
@@ -279,11 +280,13 @@ Future<void> deleteFile(String? path) async {
|
||||
if (isCueVirtualPath(path)) return;
|
||||
if (isContentUri(path)) {
|
||||
await PlatformBridge.safDelete(path);
|
||||
await musicPlayerHandler?.onSourceDeleted(path);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await File(path).delete();
|
||||
} catch (_) {}
|
||||
await musicPlayerHandler?.onSourceDeleted(path);
|
||||
}
|
||||
|
||||
Future<FileAccessStat?> fileStat(String? path) async {
|
||||
|
||||
Reference in new issue
Block a user