mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-20 13:38:05 +02:00
feat: add mobile live TV tab with channel listing, search, category filtering, and favorites display.
This commit is contained in:
1 parent
bc615c1681
commit
dd95ceb893
3 files changed
+201
-84
No files matched your search
@@ -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)),
|
||||
);
|
||||
}
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user