mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-26 12:52:40 +02:00
fix(metadata): avoid duplicate explicit indicator
This commit is contained in:
@@ -468,11 +468,6 @@ extension _TrackMetadataCards on _TrackMetadataScreenState {
|
||||
_MetadataItem(context.l10n.editMetadataFieldComposer, composer!),
|
||||
if (albumType != null)
|
||||
_MetadataItem(context.l10n.trackAlbumType, albumType!),
|
||||
if (isExplicit)
|
||||
_MetadataItem(
|
||||
context.l10n.editMetadataFieldExplicit,
|
||||
context.l10n.metadataExplicitValue,
|
||||
),
|
||||
if (comment != null)
|
||||
_MetadataItem(context.l10n.editMetadataFieldComment, comment!),
|
||||
if (isrc != null && isrc!.isNotEmpty) _MetadataItem('ISRC', isrc!),
|
||||
|
||||
@@ -44,6 +44,7 @@ void main() {
|
||||
final headerMeta = find.byType(HeaderMetaRow);
|
||||
expect(headerMeta, findsOneWidget);
|
||||
expect(find.byType(ExplicitBadge), findsNWidgets(2));
|
||||
expect(find.text('Explicit'), findsNothing);
|
||||
for (final label in const ['16-bit/44.1kHz', '4:10', 'Tidal-web']) {
|
||||
final text = tester.widget<Text>(
|
||||
find.descendant(of: headerMeta, matching: find.text(label)),
|
||||
|
||||
Reference in New Issue
Block a user