Files
SpotiFLAC-Mobile/lib/widgets/mornye_metadata_row.dart
T
zarzet 63e1a9b9c8 feat(ui): add Mornye glass theme and adaptive music player
Add a selectable Mornye theme with shared glass controls, dialogs, sheets, notifications, and collection headers while retaining Material components.

Update player artwork, lyrics transitions and highlighting, synchronized rolling time labels, volume controls, and compact navigation. Unify metadata, Library, search, and extension surfaces; preserve restored artwork and report extension load failures.

Validation: full Flutter analyzer clean; 713 tests passed and 4 skipped; pinned Dart formatting and diff checks passed; signed ARM64 and ARM32 release APKs built and verified.
2026-09-19 12:10:10 +07:00

62 lines
1.6 KiB
Dart

import 'package:flutter/material.dart';
/// Mornye TrackInfoView's vertically stacked label and value.
class MornyeMetadataRow extends StatelessWidget {
const MornyeMetadataRow({
super.key,
required this.label,
required this.value,
this.showDivider = true,
this.trailing,
this.onTap,
this.onLongPress,
});
final String label;
final String value;
final bool showDivider;
final Widget? trailing;
final VoidCallback? onTap;
final VoidCallback? onLongPress;
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final content = Padding(
padding: const EdgeInsets.symmetric(vertical: 7),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Row(
children: [
Expanded(
child: Text(
label,
style: theme.textTheme.bodySmall?.copyWith(
fontWeight: FontWeight.w500,
color: theme.colorScheme.onSurfaceVariant,
),
),
),
?trailing,
],
),
const SizedBox(height: 5),
Text(value, style: theme.textTheme.bodyLarge),
if (showDivider) ...[
const SizedBox(height: 7),
const Divider(height: 0.5),
],
],
),
);
if (onTap == null && onLongPress == null) return content;
return InkWell(
onTap: onTap,
onLongPress: onLongPress,
borderRadius: BorderRadius.circular(8),
child: content,
);
}
}