Navidrome-Integration, Widgets (Recent + Tag-Statistik)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user