mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-12 01:36:20 +02:00
feat: add ChannelCard widget to display IPTV channel information with hover effects, live status, and EPG data.
This commit is contained in:
1 parent
f8bc8c791f
commit
a4f4359401
2 files changed
+61
-9
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user