mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-03-22 00:24:16 +00:00
Compare commits
6 Commits
5b9a1cf275
...
2d4c33b94c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d4c33b94c | ||
|
|
0ac949dc1b | ||
|
|
42e954428b | ||
|
|
8c1337d1fc | ||
|
|
94e704087f | ||
|
|
8e287ab1e5 |
1
android/app/proguard-rules.pro
vendored
1
android/app/proguard-rules.pro
vendored
@ -27,6 +27,7 @@
|
|||||||
-keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; }
|
-keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; }
|
||||||
-keep class org.mozilla.javascript.** { *; }
|
-keep class org.mozilla.javascript.** { *; }
|
||||||
-keep class org.mozilla.classfile.ClassFileWriter
|
-keep class org.mozilla.classfile.ClassFileWriter
|
||||||
|
-dontwarn com.google.re2j.**
|
||||||
-dontwarn org.mozilla.javascript.tools.**
|
-dontwarn org.mozilla.javascript.tools.**
|
||||||
|
|
||||||
-dontwarn javax.script.AbstractScriptEngine
|
-dontwarn javax.script.AbstractScriptEngine
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import 'package:spotube/provider/history/recent.dart';
|
|||||||
|
|
||||||
class HomeRecentlyPlayedSection extends HookConsumerWidget {
|
class HomeRecentlyPlayedSection extends HookConsumerWidget {
|
||||||
const HomeRecentlyPlayedSection({super.key});
|
const HomeRecentlyPlayedSection({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, ref) {
|
Widget build(BuildContext context, ref) {
|
||||||
final history = ref.watch(recentlyPlayedItems);
|
final history = ref.watch(recentlyPlayedItems);
|
||||||
@ -20,17 +20,20 @@ class HomeRecentlyPlayedSection extends HookConsumerWidget {
|
|||||||
return const SizedBox();
|
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(
|
return Skeletonizer(
|
||||||
enabled: history.isLoading,
|
enabled: history.isLoading,
|
||||||
child: HorizontalPlaybuttonCardView(
|
child: HorizontalPlaybuttonCardView(
|
||||||
title: Text(context.l10n.recently_played),
|
title: Text(context.l10n.recently_played),
|
||||||
items: [
|
items: filteredItems,
|
||||||
for (final item in historyData)
|
|
||||||
if (item.playlist != null)
|
|
||||||
item.playlist
|
|
||||||
else if (item.album != null)
|
|
||||||
item.album
|
|
||||||
],
|
|
||||||
hasNextPage: false,
|
hasNextPage: false,
|
||||||
isLoadingNextPage: false,
|
isLoadingNextPage: false,
|
||||||
onFetchMore: () {},
|
onFetchMore: () {},
|
||||||
|
|||||||
14
pubspec.lock
14
pubspec.lock
@ -745,11 +745,11 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: master
|
ref: HEAD
|
||||||
resolved-ref: "922f9f9eafd8b501da83dca67d56b2887fa8f916"
|
resolved-ref: "458046cd9a88924e5074d96ba45397219d53b230"
|
||||||
url: "https://github.com/TiffApps/fk_user_agent.git"
|
url: "https://github.com/maeltoukap/fk_user_agent.git"
|
||||||
source: git
|
source: git
|
||||||
version: "2.1.1"
|
version: "2.1.0"
|
||||||
fluentui_system_icons:
|
fluentui_system_icons:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -946,9 +946,9 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: ab3ff415114b7b43593e6ee718ad3d760af18350
|
ref: HEAD
|
||||||
resolved-ref: ab3ff415114b7b43593e6ee718ad3d760af18350
|
resolved-ref: ab3ff415114b7b43593e6ee718ad3d760af18350
|
||||||
url: "https://github.com/KRTirtho/flutter_new_pipe_extractor.git"
|
url: "https://github.com/KRTirtho/flutter_new_pipe_extractor"
|
||||||
source: git
|
source: git
|
||||||
version: "0.1.0"
|
version: "0.1.0"
|
||||||
flutter_plugin_android_lifecycle:
|
flutter_plugin_android_lifecycle:
|
||||||
@ -1189,7 +1189,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: main
|
ref: main
|
||||||
resolved-ref: "32828156bc111d147709f8d644804227bbdfe8f1"
|
resolved-ref: d85dd429241d464a8b5b0c2b3d870143eeba8b46
|
||||||
url: "https://github.com/KRTirtho/hetu_spotube_plugin.git"
|
url: "https://github.com/KRTirtho/hetu_spotube_plugin.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.2"
|
version: "0.0.2"
|
||||||
|
|||||||
@ -121,8 +121,7 @@ dependencies:
|
|||||||
ref: 4e5310e14af74bdbb51e2a4766e66d6c6a2562a8
|
ref: 4e5310e14af74bdbb51e2a4766e66d6c6a2562a8
|
||||||
flutter_new_pipe_extractor:
|
flutter_new_pipe_extractor:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/KRTirtho/flutter_new_pipe_extractor.git
|
url: https://github.com/KRTirtho/flutter_new_pipe_extractor
|
||||||
ref: ab3ff415114b7b43593e6ee718ad3d760af18350
|
|
||||||
http_parser: ^4.1.2
|
http_parser: ^4.1.2
|
||||||
collection: any
|
collection: any
|
||||||
archive: ^4.0.7
|
archive: ^4.0.7
|
||||||
@ -240,6 +239,8 @@ flutter:
|
|||||||
- packages/hetu_std/assets/bytecode/std.out
|
- packages/hetu_std/assets/bytecode/std.out
|
||||||
- packages/hetu_otp_util/assets/bytecode/otp_util.out
|
- packages/hetu_otp_util/assets/bytecode/otp_util.out
|
||||||
- packages/hetu_spotube_plugin/assets/bytecode/spotube_plugin.out
|
- packages/hetu_spotube_plugin/assets/bytecode/spotube_plugin.out
|
||||||
|
# NewPipe binaries (desktop only)
|
||||||
|
- packages/flutter_new_pipe_extractor/assets/
|
||||||
fonts:
|
fonts:
|
||||||
- family: RadixIcons
|
- family: RadixIcons
|
||||||
fonts:
|
fonts:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user