mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-06 07:29:42 +00:00
Compare commits
6 Commits
6430f971af
...
1705028915
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1705028915 | ||
|
|
4072531c62 | ||
|
|
42e954428b | ||
|
|
8c1337d1fc | ||
|
|
94e704087f | ||
|
|
8e287ab1e5 |
@ -1,3 +1,3 @@
|
||||
{
|
||||
"flutterSdkVersion": "3.29.0"
|
||||
"flutterSdkVersion": "3.29.1"
|
||||
}
|
||||
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -28,5 +28,5 @@
|
||||
"README.md": "LICENSE,CODE_OF_CONDUCT.md,CONTRIBUTING.md,SECURITY.md,CONTRIBUTION.md,CHANGELOG.md,PRIVACY_POLICY.md",
|
||||
"*.dart": "${capture}.g.dart,${capture}.freezed.dart"
|
||||
},
|
||||
"dart.flutterSdkPath": ".fvm/versions/3.29.0"
|
||||
"dart.flutterSdkPath": ".fvm/versions/3.29.1"
|
||||
}
|
||||
@ -25,9 +25,9 @@
|
||||
android:requestLegacyExternalStorage="true"
|
||||
android:usesCleartextTraffic="true">
|
||||
<!-- Enable Impeller -->
|
||||
<!-- <meta-data
|
||||
<meta-data
|
||||
android:name="io.flutter.embedding.android.EnableImpeller"
|
||||
android:value="false" /> -->
|
||||
android:value="false" />
|
||||
|
||||
<activity
|
||||
android:name="com.ryanheise.audioservice.AudioServiceActivity"
|
||||
|
||||
@ -20,17 +20,20 @@ class HomeRecentlyPlayedSection extends HookConsumerWidget {
|
||||
return const SizedBox();
|
||||
}
|
||||
|
||||
final uniqueItems = <dynamic>{};
|
||||
final filteredItems = [
|
||||
for (final item in historyData)
|
||||
if (item.playlist != null && item.playlist?.id != null && uniqueItems.add(item.playlist!.id!))
|
||||
item.playlist
|
||||
else if (item.album != null && item.album?.id != null && uniqueItems.add(item.album?.id))
|
||||
item.album
|
||||
];
|
||||
|
||||
return Skeletonizer(
|
||||
enabled: history.isLoading,
|
||||
child: HorizontalPlaybuttonCardView(
|
||||
title: Text(context.l10n.recently_played),
|
||||
items: [
|
||||
for (final item in historyData)
|
||||
if (item.playlist != null)
|
||||
item.playlist
|
||||
else if (item.album != null)
|
||||
item.album
|
||||
],
|
||||
items: filteredItems,
|
||||
hasNextPage: false,
|
||||
isLoadingNextPage: false,
|
||||
onFetchMore: () {},
|
||||
|
||||
@ -48,7 +48,7 @@ class PlayerView extends HookConsumerWidget {
|
||||
ref.watch(audioPlayerProvider.select((s) => s.activeTrack));
|
||||
final currentTrack = sourcedCurrentTrack ?? currentActiveTrack;
|
||||
final isLocalTrack = currentTrack is LocalTrack;
|
||||
final mediaQuery = MediaQuery.of(context);
|
||||
final mediaQuery = MediaQuery.sizeOf(context);
|
||||
|
||||
final shouldHide = useState(true);
|
||||
|
||||
@ -101,6 +101,8 @@ class PlayerView extends HookConsumerWidget {
|
||||
backgroundColor: Colors.transparent,
|
||||
headers: [
|
||||
SafeArea(
|
||||
minimum: const EdgeInsets.only(top: 80),
|
||||
bottom: false,
|
||||
child: TitleBar(
|
||||
surfaceOpacity: 0,
|
||||
surfaceBlur: 0,
|
||||
|
||||
@ -43,13 +43,16 @@ class RootAppPage extends HookConsumerWidget {
|
||||
final scaffold = MediaQuery.removeViewInsets(
|
||||
context: context,
|
||||
removeBottom: true,
|
||||
child: const Scaffold(
|
||||
footers: [
|
||||
BottomPlayer(),
|
||||
SpotubeNavigationBar(),
|
||||
],
|
||||
floatingFooter: true,
|
||||
child: Sidebar(child: AutoRouter()),
|
||||
child: const SafeArea(
|
||||
top: false,
|
||||
child: Scaffold(
|
||||
footers: [
|
||||
BottomPlayer(),
|
||||
SpotubeNavigationBar(),
|
||||
],
|
||||
floatingFooter: true,
|
||||
child: Sidebar(child: AutoRouter()),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user