mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +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
2d6def1f91
commit
dc3a61673b
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