Navidrome-Integration, Widgets (Recent + Tag-Statistik)

This commit is contained in:
Hermes (Server)
2026-07-23 22:23:28 +02:00
parent 94a4063070
commit c7828b851c
16 changed files with 1434 additions and 158 deletions
+6 -1
View File
@@ -4,8 +4,9 @@ import '../utils/farb_theme.dart';
class MeloHeader extends StatelessWidget {
final VoidCallback onDownload;
final VoidCallback onSearch;
final VoidCallback? onServer;
const MeloHeader({super.key, required this.onDownload, required this.onSearch});
const MeloHeader({super.key, required this.onDownload, required this.onSearch, this.onServer});
@override
Widget build(BuildContext context) {
@@ -28,6 +29,10 @@ class MeloHeader extends StatelessWidget {
],
),
Row(children: [
if (onServer != null) ...[
_btn(Icons.cloud, onServer!),
const SizedBox(width: 8),
],
_btn(Icons.download, onDownload),
const SizedBox(width: 8),
_btn(Icons.search, onSearch),