- Meine Musik als Startbildschirm ohne Topbar: Kopfzeile (Einstellungen, Suche, Musikerkennung), Schnellzugriffe, Shuffle + Sortieren, Liederliste - Sortierung nach Zuletzt hinzugefuegt / Name (A-Z-#) / Wie oft abgespielt, auf- und absteigend, pro Liste gespeichert (SortStore) - Favoriten als eigener Tab mit gleicher Shuffle-/Sortier-Leiste - Download-Tab uebernimmt den Navidrome-Server-Browser - DB-Schema 3: playCount, gezaehlt beim Titelstart - Theme auf #0B0B10 / #c0392b - Scan-Aktionen aus der entfallenen Topbar jetzt in den Einstellungen Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011snPXPafPC5i87o68H14W7
26 lines
575 B
Dart
26 lines
575 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:melo/library/database.dart';
|
|
import 'package:melo/library/song_media.dart';
|
|
|
|
void main() {
|
|
test('songToMediaItem trägt die Song-UUID in extras', () {
|
|
final song = Song(
|
|
id: 'song-1',
|
|
path: '/a.mp3',
|
|
title: 'A',
|
|
artist: null,
|
|
album: null,
|
|
durationMs: null,
|
|
coverPath: null,
|
|
dateAddedMs: 0,
|
|
updatedAtMs: 0,
|
|
deleted: false,
|
|
playCount: 0,
|
|
);
|
|
|
|
final item = songToMediaItem(song);
|
|
|
|
expect(item.extras?['songId'], song.id);
|
|
});
|
|
}
|