fix(mornye): show track summary and update welcome branding

This commit is contained in:
zarzet
2026-09-22 15:37:06 +07:00
parent c594c493dd
commit ebcd1fd877
5 changed files with 20 additions and 18 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"upgradeIntroWelcome": "Welcome to\nSpotiFLAC 5.0",
"upgradeIntroWelcome": "Welcome to\nSpotiFLAC-Mobile 5.0",
"upgradeIntroThemeTitle": "Make it\nyour own.",
"upgradeIntroThemeBody": "Choose a look. Your choice applies immediately, and you can change it later in Appearance.",
"upgradeIntroThemeMaterialBody": "The familiar layout, with Material controls and your accent color.",
+1 -1
View File
@@ -1,5 +1,5 @@
{
"upgradeIntroWelcome": "Selamat datang di\nSpotiFLAC 5.0",
"upgradeIntroWelcome": "Selamat datang di\nSpotiFLAC-Mobile 5.0",
"upgradeIntroThemeTitle": "Pilih\ntampilanmu.",
"upgradeIntroThemeBody": "Pilih tema yang kamu suka. Pilihan langsung diterapkan dan bisa diubah lagi lewat Tampilan.",
"upgradeIntroThemeMaterialBody": "Tampilan yang sudah familiar, dengan kontrol Material dan warna aksen pilihanmu.",
+14 -14
View File
@@ -11,6 +11,19 @@ final ImageFilter _trackMetadataBackdropBlur = ImageFilter.blur(
);
extension _TrackMetadataCards on _TrackMetadataScreenState {
List<Widget> _headerMetadataItems(BuildContext context) => [
if (_displayAudioQuality != null && _displayAudioQuality!.isNotEmpty)
HeaderMetaItem(_displayAudioQuality!),
if (duration != null) HeaderMetaItem(formatClock(duration!)),
if (_service == 'local')
HeaderMetaItem(
context.l10n.librarySourceLocal,
icon: context.isMornye ? CupertinoIcons.folder : Icons.folder,
)
else if (_service.isNotEmpty)
HeaderMetaItem(_service[0].toUpperCase() + _service.substring(1)),
];
Widget _buildAnimatedTrackContent(
BuildContext context,
WidgetRef ref,
@@ -265,20 +278,7 @@ extension _TrackMetadataCards on _TrackMetadataScreenState {
scheme: _trackMetadataHeroScheme,
child: HeaderMetaRow(
items: [
if (_displayAudioQuality != null &&
_displayAudioQuality!.isNotEmpty)
HeaderMetaItem(_displayAudioQuality!),
if (duration != null)
HeaderMetaItem(formatClock(duration!)),
if (_service != 'local')
HeaderMetaItem(
_service[0].toUpperCase() + _service.substring(1),
)
else
HeaderMetaItem(
context.l10n.librarySourceLocal,
icon: Icons.folder,
),
..._headerMetadataItems(context),
if (_hasCheckedFile && !_fileExists)
HeaderMetaItem(
context.l10n.trackFileNotFound,
+2
View File
@@ -106,6 +106,8 @@ extension _TrackMetadataMornye on _TrackMetadataScreenState {
color: scheme.onSurfaceVariant,
),
),
const SizedBox(height: 12),
HeaderMetaRow(items: _headerMetadataItems(context)),
const SizedBox(height: 16),
_buildActionButtons(context, ref, scheme, _fileExists),
if (_hasCheckedFile && !_fileExists)
+2 -2
View File
@@ -137,7 +137,7 @@ void main() {
tester,
) async {
await openTour(tester, brightness: brightness);
expect(find.text('Welcome to\nSpotiFLAC 5.0'), findsOneWidget);
expect(find.text('Welcome to\nSpotiFLAC-Mobile 5.0'), findsOneWidget);
expect(find.byType(Image), findsNothing);
await capturePage(tester, '${brightness.name}-welcome');
await tester.tap(find.text('Continue'));
@@ -146,7 +146,7 @@ void main() {
await capturePage(tester, '${brightness.name}-themes');
await tester.binding.handlePopRoute();
await tester.pumpAndSettle();
expect(find.text('Welcome to\nSpotiFLAC 5.0'), findsOneWidget);
expect(find.text('Welcome to\nSpotiFLAC-Mobile 5.0'), findsOneWidget);
for (var i = 0; i < 4; i++) {
await tester.tap(find.text('Continue'));
await tester.pumpAndSettle();