feat: Implement initial mobile application structure including IPTV features, authentication, routing, and theming.

This commit is contained in:
Michael committed 2025-12-06 23:25:42 +01:00
1 parent 6ee7fa178a
commit 26ac5fb0b8
12 files changed
+2082 -3

No files matched your search

@@ -0,0 +1,36 @@
import 'package:flutter/material.dart';
import '../../../../features/iptv/screens/player_screen.dart';
import '../../../../core/models/playlist_config.dart';
/// Mobile wrapper for the PlayerScreen.
/// Currently reuses the desktop PlayerScreen as it adapts well to mobile (video player),
/// but allows for future mobile-specific overlays or gesture controls.
class MobilePlayerScreen extends StatelessWidget {
final String streamId;
final String title;
final StreamType streamType;
final String containerExtension;
final PlaylistConfig playlist;
const MobilePlayerScreen({
super.key,
required this.streamId,
required this.title,
required this.playlist,
this.streamType = StreamType.live,
this.containerExtension = 'mp4',
});
@override
Widget build(BuildContext context) {
// For now, we reuse the existing PlayerScreen which is responsive.
// In the future, we can add Mobile-specific gesture detectors here.
return PlayerScreen(
streamId: streamId,
title: title,
playlist: playlist,
streamType: streamType,
containerExtension: containerExtension,
);
}
}