feat: add new UI tabs for movies and series, including mobile-specific versions with search and pagination.

This commit is contained in:
Michael committed 2025-12-08 20:43:41 +01:00
1 parent d48d25f65e
commit 6a71f58a36
29 files changed
+78 -78

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ class _ChannelCardState extends ConsumerState<ChannelCard>
super.initState();
_pulseController = AnimationController(
vsync: this,
duration: const Duration(milliseconds: 1000)
duration: const Duration(milliseconds: 1000),
)..repeat(reverse: true);
// Fetch EPG immediately when card is built
+1 -1
View File
@@ -20,7 +20,7 @@ class EpgOverlay extends ConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
final epgAsync = ref.watch(epgByPlaylistProvider(
EpgRequestKey(playlist: playlist, streamId: streamId),
));
),);
return epgAsync.when(
data: (epgEntries) {
+1 -1
View File
@@ -165,7 +165,7 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
if (_searchQuery.isNotEmpty)
GestureDetector(
onTap: () => _searchController.clear(),
child: const Icon(Icons.close, size: 16, color: AppColors.textSecondary)
child: const Icon(Icons.close, size: 16, color: AppColors.textSecondary),
),
],
),
+2 -2
View File
@@ -141,8 +141,8 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
}
/// Proxy HTTP images through backend to avoid CORS/mixed-content issues
String? _getProxiedImageUrl(String? originalUrl) {
if (originalUrl == null || originalUrl.isEmpty) return null;
String _getProxiedImageUrl(String? originalUrl) {
if (originalUrl == null || originalUrl.isEmpty) return '';
if (originalUrl.startsWith('http://')) {
return '/api/xtream/$originalUrl';
}
+2 -2
View File
@@ -141,8 +141,8 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
}
/// Proxy HTTP images through backend to avoid CORS/mixed-content issues
String? _getProxiedImageUrl(String? originalUrl) {
if (originalUrl == null || originalUrl.isEmpty) return null;
String _getProxiedImageUrl(String? originalUrl) {
if (originalUrl == null || originalUrl.isEmpty) return '';
if (originalUrl.startsWith('http://')) {
return '/api/xtream/$originalUrl';
}