fix(library): sync track playback controls

This commit is contained in:
zarzet
2026-08-30 00:43:13 +07:00
parent d5465e9768
commit 7141ca980f
7 changed files with 150 additions and 38 deletions
+4 -2
View File
@@ -278,12 +278,14 @@ class TrackGridPlayButton extends StatelessWidget {
super.key,
required this.tooltip,
required this.onPressed,
this.icon = Icons.play_arrow,
});
static const double visualDiameter = 36;
final String tooltip;
final VoidCallback onPressed;
final VoidCallback? onPressed;
final IconData icon;
@override
Widget build(BuildContext context) {
@@ -307,7 +309,7 @@ class TrackGridPlayButton extends StatelessWidget {
color: colorScheme.primary,
shape: BoxShape.circle,
),
child: Icon(Icons.play_arrow, size: 18, color: colorScheme.onPrimary),
child: Icon(icon, size: 18, color: colorScheme.onPrimary),
),
);
}