mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-29 21:02:09 +02:00
fix(mornye): show track summary and update welcome branding
This commit is contained in:
@@ -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,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.",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user