🐛 Fix selection now won't work in library

This commit is contained in:
2025-12-20 13:31:47 +08:00
parent b05566dd36
commit 560590bf60
2 changed files with 4 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import 'package:styled_widget/styled_widget.dart';
class TrackTile extends StatelessWidget {
final db.Track track;
final VoidCallback? onTap;
final VoidCallback? onLongPress;
final bool isPlaying;
final bool showTrailingIcon;
final VoidCallback? onTrailingPressed;
@@ -17,6 +18,7 @@ class TrackTile extends StatelessWidget {
super.key,
required this.track,
this.onTap,
this.onLongPress,
this.isPlaying = false,
this.leading,
this.padding,
@@ -90,6 +92,7 @@ class TrackTile extends StatelessWidget {
)
: null,
onTap: onTap,
onLongPress: onLongPress,
),
);
}