Fix: Review-Findings korrigiert (Tag-Leiste, Profil, Singleton u.a.)
CRIT: - Tag-Leiste: Toggle-Kopf 'Tags & Filter' eingebaut (war unerreichbar) + TagStats - Profil: Cloud-Count vor Dialog aufloesen (kein 'Instance of Future' mehr) HIGH: - CloudEinstellungen: toten Sync-Timer entfernt (echter Timer im ViewModel) - StatistikCard + RecentWidget jetzt eingebaut (gesamtMB/gesamtMin endlich genutzt) - CloudService als Singleton (konsistenter Token-Zustand in allen Services) MED/LOW: - Playlist-Erkennung nur noch via list= Parameter - Player: fehlende Quelle wird geloggt statt still - song_tile: null-ID-Guard vor Tag-Dialog - Scanner-Log mit Exception-Objekt - FavoritenService: anzahlFavoriten() fuer StatistikCard
This commit is contained in:
@@ -5,8 +5,9 @@ class MeloHeader extends StatelessWidget {
|
||||
final VoidCallback onDownload;
|
||||
final VoidCallback onSearch;
|
||||
final VoidCallback? onServer;
|
||||
final VoidCallback? onSettings;
|
||||
|
||||
const MeloHeader({super.key, required this.onDownload, required this.onSearch, this.onServer});
|
||||
const MeloHeader({super.key, required this.onDownload, required this.onSearch, this.onServer, this.onSettings});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -39,6 +40,10 @@ class MeloHeader extends StatelessWidget {
|
||||
_btn(Icons.download, onDownload),
|
||||
const SizedBox(width: 8),
|
||||
_btn(Icons.search, onSearch),
|
||||
if (onSettings != null) ...[
|
||||
const SizedBox(width: 8),
|
||||
_btn(Icons.settings, onSettings!),
|
||||
],
|
||||
]),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user