mirror of
https://github.com/spotiflacapp/SpotiFLAC-Mobile.git
synced 2026-06-01 03:15:17 +07:00
fix: stabilize library search and bump version
This commit is contained in:
parent
8238e2fe68
commit
18467c54d6
3 changed files with 21 additions and 7 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
|
|
||||||
class AppInfo {
|
class AppInfo {
|
||||||
static const String version = '4.5.0';
|
static const String version = '4.5.1';
|
||||||
static const String buildNumber = '127';
|
static const String buildNumber = '128';
|
||||||
static const String fullVersion = '$version+$buildNumber';
|
static const String fullVersion = '$version+$buildNumber';
|
||||||
|
|
||||||
static String get displayVersion => kDebugMode ? 'Internal' : version;
|
static String get displayVersion => kDebugMode ? 'Internal' : version;
|
||||||
|
|
|
||||||
|
|
@ -2472,6 +2472,12 @@ class _QueueTabState extends ConsumerState<QueueTab> {
|
||||||
final hasQueueItems = ref.watch(
|
final hasQueueItems = ref.watch(
|
||||||
downloadQueueLookupProvider.select((lookup) => lookup.itemIds.isNotEmpty),
|
downloadQueueLookupProvider.select((lookup) => lookup.itemIds.isNotEmpty),
|
||||||
);
|
);
|
||||||
|
final historyTotalCount = ref.watch(
|
||||||
|
downloadHistoryProvider.select((state) => state.totalCount),
|
||||||
|
);
|
||||||
|
final localLibraryTotalCount = ref.watch(
|
||||||
|
localLibraryProvider.select((state) => state.totalCount),
|
||||||
|
);
|
||||||
final localLibraryEnabled = ref.watch(
|
final localLibraryEnabled = ref.watch(
|
||||||
settingsProvider.select((s) => s.localLibraryEnabled),
|
settingsProvider.select((s) => s.localLibraryEnabled),
|
||||||
);
|
);
|
||||||
|
|
@ -2565,6 +2571,13 @@ class _QueueTabState extends ConsumerState<QueueTab> {
|
||||||
(pageValues[historyFilterMode]?.isLoading ?? false);
|
(pageValues[historyFilterMode]?.isLoading ?? false);
|
||||||
final hasAnyLibraryItems =
|
final hasAnyLibraryItems =
|
||||||
queueCounts.allTrackCount > 0 || queueCounts.albumCount > 0;
|
queueCounts.allTrackCount > 0 || queueCounts.albumCount > 0;
|
||||||
|
final hasLibraryContent =
|
||||||
|
historyTotalCount > 0 ||
|
||||||
|
(localLibraryEnabled && localLibraryTotalCount > 0);
|
||||||
|
final hasActiveSearch =
|
||||||
|
_searchQuery.isNotEmpty || _searchController.text.trim().isNotEmpty;
|
||||||
|
final shouldShowLibraryControls =
|
||||||
|
hasLibraryContent || hasAnyLibraryItems || hasActiveSearch;
|
||||||
|
|
||||||
final bottomPadding = MediaQuery.paddingOf(context).bottom;
|
final bottomPadding = MediaQuery.paddingOf(context).bottom;
|
||||||
final selectionItems = getFilterData(
|
final selectionItems = getFilterData(
|
||||||
|
|
@ -2644,7 +2657,7 @@ class _QueueTabState extends ConsumerState<QueueTab> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
if (hasAnyLibraryItems || hasQueueItems)
|
if (shouldShowLibraryControls || hasQueueItems)
|
||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(16, 8, 16, 0),
|
padding: const EdgeInsets.fromLTRB(16, 8, 16, 0),
|
||||||
|
|
@ -2709,7 +2722,7 @@ class _QueueTabState extends ConsumerState<QueueTab> {
|
||||||
|
|
||||||
if (hasQueueItems) _buildQueueItemsSliver(context, colorScheme),
|
if (hasQueueItems) _buildQueueItemsSliver(context, colorScheme),
|
||||||
|
|
||||||
if (hasAnyLibraryItems)
|
if (shouldShowLibraryControls)
|
||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(16, 12, 16, 4),
|
padding: const EdgeInsets.fromLTRB(16, 12, 16, 4),
|
||||||
|
|
@ -3809,12 +3822,13 @@ class _QueueTabState extends ConsumerState<QueueTab> {
|
||||||
(filterMode != 'albums' ||
|
(filterMode != 'albums' ||
|
||||||
(filteredGroupedAlbums.isEmpty &&
|
(filteredGroupedAlbums.isEmpty &&
|
||||||
filteredGroupedLocalAlbums.isEmpty)) &&
|
filteredGroupedLocalAlbums.isEmpty)) &&
|
||||||
!showFilteringIndicator)
|
!showFilteringIndicator &&
|
||||||
|
!isPageLoading)
|
||||||
SliverFillRemaining(
|
SliverFillRemaining(
|
||||||
hasScrollBody: false,
|
hasScrollBody: false,
|
||||||
child: _buildEmptyState(context, colorScheme, filterMode),
|
child: _buildEmptyState(context, colorScheme, filterMode),
|
||||||
)
|
)
|
||||||
else if (isPageLoading && filterMode != 'albums')
|
else if (isPageLoading)
|
||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(16, 12, 16, 8),
|
padding: const EdgeInsets.fromLTRB(16, 12, 16, 8),
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
name: spotiflac_android
|
name: spotiflac_android
|
||||||
description: Download Spotify tracks in FLAC from Tidal, Qobuz & Deezer
|
description: Download Spotify tracks in FLAC from Tidal, Qobuz & Deezer
|
||||||
publish_to: "none"
|
publish_to: "none"
|
||||||
version: 4.5.0+127
|
version: 4.5.1+128
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.10.0
|
sdk: ^3.10.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue