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
+23 -15
+23 -15
View File
@@ -716,22 +716,30 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
double size = 48,
double iconSize = 24,
}) {
return TvFocusableCard(
onTap: onTap,
borderRadius: size / 2,
scaleFactor: 1.1,
child: Container(
width: size,
height: size,
decoration: BoxDecoration(
color:
transparent ? Colors.transparent : Colors.white.withOpacity(0.1),
shape: BoxShape.circle,
border: transparent
? null
: Border.all(color: Colors.white.withOpacity(0.1)),
// Simplified button with direct Material/InkWell and PointerInterceptor
return PointerInterceptor(
child: Material(
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(
width: size,
height: size,
alignment: Alignment.center,
decoration: BoxDecoration(
shape: BoxShape.circle,
border: transparent
? null
: Border.all(color: Colors.white.withOpacity(0.1)),
),
child: Icon(icon, color: Colors.white, size: iconSize),
),
),
child: Icon(icon, color: Colors.white, size: iconSize),
),
);
}