feat: add ChannelCard widget to display IPTV channel information with hover effects, live status, and EPG data.

This commit is contained in:
Michael committed 2025-12-06 23:58:22 +01:00
1 parent 2d6def1f91
commit dc3a61673b
2 files changed
+61 -9

No files matched your search

+1 -9
View File
@@ -56,15 +56,6 @@ class _ChannelCardState extends ConsumerState<ChannelCard>
super.dispose();
}
@override
Widget build(BuildContext context) {
final favorites = ref.watch(favoritesProvider);
final isFavorite = favorites.contains(widget.streamId);
// Dynamic sizing based on hover.
// In valid tvOS, the layout reserves space, so we scale the content but not the layout bounds to avoid reflow.
// However, simplest way here is just Transform.scale.
Future<void> _fetchEpg() async {
if (_epgLoaded) return;
@@ -108,6 +99,7 @@ class _ChannelCardState extends ConsumerState<ChannelCard>
final favorites = ref.watch(favoritesProvider);
final isFavorite = favorites.contains(widget.streamId);
// Dynamic sizing based on hover
return MouseRegion(
onEnter: (_) {
setState(() => _isHovered = true);