mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-11 17:29:26 +02:00
feat: add mobile IPTV playlist management screen with auto-login functionality
This commit is contained in:
1 parent
2406b9b100
commit
32af7fd920
2 files changed
+21
-4
No files matched your search
@@ -36,13 +36,13 @@ class AppColors {
|
||||
end: Alignment.bottomRight,
|
||||
);
|
||||
|
||||
/// Apple TV Style Background Gradient (Grey/Black Radial)
|
||||
/// Apple TV Style Background Gradient (Lighter Grey for categories)
|
||||
static const RadialGradient appleTvGradient = RadialGradient(
|
||||
center: Alignment.center,
|
||||
radius: 1.5,
|
||||
radius: 2.0,
|
||||
colors: [
|
||||
Color(0xFF2C2C2E), // Apple Dark Gray
|
||||
Color(0xFF000000), // Black
|
||||
Color(0xFF3A3A3C), // Lighter Apple Gray
|
||||
Color(0xFF1C1C1E), // Dark Gray (not pure black)
|
||||
],
|
||||
stops: [0.0, 1.0],
|
||||
);
|
||||
|
||||
@@ -28,6 +28,23 @@ class _MobilePlaylistScreenState extends ConsumerState<MobilePlaylistScreen> {
|
||||
void initState() {
|
||||
super.initState();
|
||||
_playlistService.init();
|
||||
|
||||
// Auto-login: if playlists exist, navigate to first one automatically
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
_checkAutoLogin();
|
||||
});
|
||||
}
|
||||
|
||||
Future<void> _checkAutoLogin() async {
|
||||
try {
|
||||
final playlists = await _playlistService.getPlaylists();
|
||||
if (playlists.isNotEmpty && mounted) {
|
||||
// Navigate to first playlist automatically
|
||||
_navigateToDashboard(playlists.first);
|
||||
}
|
||||
} catch (e) {
|
||||
debugPrint('Auto-login check failed: $e');
|
||||
}
|
||||
}
|
||||
|
||||
void _refreshPlaylists() {
|
||||
|
||||
Reference in new issue
Block a user