feat: add mobile live TV tab with channel listing, search, category filtering, and favorites display.

This commit is contained in:
Michael committed 2025-12-13 10:03:58 +01:00
1 parent bc615c1681
commit dd95ceb893
3 files changed
+201 -84

No files matched your search

+23 -3
View File
@@ -368,9 +368,29 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
Text(
'Channel #${channel.num}',
style: GoogleFonts.inter(color: Colors.white54, fontSize: 10),
const SizedBox(height: 4),
Consumer(
builder: (context, ref, _) {
final epgAsync = ref.watch(epgByPlaylistProvider(
EpgRequestKey(playlist: widget.playlist, streamId: channel.streamId)
));
return epgAsync.when(
data: (epgList) {
if (epgList.isEmpty) {
return Text('No Info', style: GoogleFonts.inter(color: Colors.white54, fontSize: 10));
}
return Text(
epgList.first.title,
style: GoogleFonts.inter(color: const Color(0xFFFFD700), fontSize: 10, fontWeight: FontWeight.w600),
maxLines: 1,
overflow: TextOverflow.ellipsis,
);
},
loading: () => Text('...', style: GoogleFonts.inter(color: Colors.white24, fontSize: 10)),
error: (_,__) => Text('Err', style: GoogleFonts.inter(color: Colors.red, fontSize: 10)),
);
}
),
],
),