feat: Implement IPTV player screen with playback controls and stream type handling.

This commit is contained in:
Michael committed 2026-01-01 18:41:02 +01:00
1 parent 30218cb1d0
commit 83e43b9da8
1 file changed
+14 -6
+14 -6
View File
@@ -716,16 +716,22 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
double size = 48, double size = 48,
double iconSize = 24, double iconSize = 24,
}) { }) {
return TvFocusableCard( // Simplified button with direct Material/InkWell and PointerInterceptor
onTap: onTap, return PointerInterceptor(
borderRadius: size / 2, child: Material(
scaleFactor: 1.1, color: transparent ? Colors.transparent : Colors.white.withOpacity(0.1),
shape: const CircleBorder(),
child: InkWell(
onTap: () {
print('[PlayerScreen] Button tapped: $icon');
onTap();
},
customBorder: const CircleBorder(),
child: Container( child: Container(
width: size, width: size,
height: size, height: size,
alignment: Alignment.center,
decoration: BoxDecoration( decoration: BoxDecoration(
color:
transparent ? Colors.transparent : Colors.white.withOpacity(0.1),
shape: BoxShape.circle, shape: BoxShape.circle,
border: transparent border: transparent
? null ? null
@@ -733,6 +739,8 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
), ),
child: Icon(icon, color: Colors.white, size: iconSize), child: Icon(icon, color: Colors.white, size: iconSize),
), ),
),
),
); );
} }
} }