mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-16 19:58:54 +02:00
feat(theme): complete redesign to Cyber-Cinematic Glass (Stitch)
Replace the legacy Apple TV-style purple/cyan theme with the full Google Stitch Cyber-Cinematic Glass design system across the entire app (desktop + mobile). - New Material 3 dark ColorScheme: background #121317, primary #adc6ff, primaryContainer #4b8eff, surface containers, etc. - Typography: Space Grotesk (headlines) + Inter (body/labels) - 3-level glassmorphism via GlassContainer: base, glass, floating - Primary gradient: #007AFF → #00C6FF with blue glow effects - Removed old compatibility aliases (focusColor, border, textPrimary, textSecondary); all code now uses semantic Stitch tokens - Systematically replaced all Colors.white/black/red/grey and GoogleFonts.roboto/outfit with Stitch equivalents - All 36 lib/ files updated, zero compilation errors Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
a9a1127d6b
commit
f7eaa724e2
36 files changed
+1651
-986
No files matched your search
@@ -26,14 +26,13 @@ class AdminPanel extends StatelessWidget {
|
||||
extendBodyBehindAppBar: true,
|
||||
body: Container(
|
||||
decoration: const BoxDecoration(
|
||||
gradient: RadialGradient(
|
||||
center: Alignment.center,
|
||||
radius: 1.5,
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
colors: [
|
||||
Color(0xFF2C2C2E), // Dark Grey (Apple TV Surface)
|
||||
Color(0xFF000000), // Pure Black
|
||||
Color(0xFF0F1014),
|
||||
Color(0xFF121317),
|
||||
],
|
||||
stops: [0.0, 1.0],
|
||||
),
|
||||
),
|
||||
child: const AdminContent(),
|
||||
@@ -81,13 +80,13 @@ class _AdminContentState extends ConsumerState<AdminContent>
|
||||
padding: const EdgeInsets.all(8),
|
||||
showBorder: false,
|
||||
onTap: () => context.go('/playlists'),
|
||||
child: const Icon(Icons.arrow_back, color: Colors.white70),
|
||||
child: const Icon(Icons.arrow_back, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Text(
|
||||
'Administration',
|
||||
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
@@ -140,7 +139,7 @@ class _AdminContentState extends ConsumerState<AdminContent>
|
||||
duration: AppTheme.durationFast,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
||||
decoration: BoxDecoration(
|
||||
color: isSelected ? AppColors.focusColor : Colors.transparent,
|
||||
color: isSelected ? AppColors.primaryContainer : Colors.transparent,
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
),
|
||||
child: Row(
|
||||
@@ -148,7 +147,7 @@ class _AdminContentState extends ConsumerState<AdminContent>
|
||||
Icon(
|
||||
icon,
|
||||
size: 18,
|
||||
color: isSelected ? Colors.black : Colors.white70,
|
||||
color: isSelected ? AppColors.onPrimaryContainer : AppColors.onSurfaceVariant,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
@@ -156,7 +155,7 @@ class _AdminContentState extends ConsumerState<AdminContent>
|
||||
style: GoogleFonts.inter(
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 14,
|
||||
color: isSelected ? Colors.black : Colors.white70,
|
||||
color: isSelected ? AppColors.onPrimaryContainer : AppColors.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -188,7 +187,7 @@ class _PlaylistsTab extends ConsumerWidget {
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.bodyLarge
|
||||
?.copyWith(color: Colors.white70),
|
||||
?.copyWith(color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
GradientButton(
|
||||
label: 'Add Playlist',
|
||||
@@ -216,7 +215,7 @@ class _PlaylistsTab extends ConsumerWidget {
|
||||
Icon(
|
||||
Icons.playlist_remove,
|
||||
size: 64,
|
||||
color: AppColors.textSecondary.withOpacity(0.5),
|
||||
color: AppColors.onSurfaceVariant.withOpacity(0.5),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
@@ -253,7 +252,7 @@ class _PlaylistsTab extends ConsumerWidget {
|
||||
),
|
||||
child: const Icon(
|
||||
Icons.playlist_play,
|
||||
color: AppColors.textPrimary,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
@@ -266,7 +265,7 @@ class _PlaylistsTab extends ConsumerWidget {
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.titleMedium
|
||||
?.copyWith(color: Colors.white),
|
||||
?.copyWith(color: AppColors.onSurface),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
@@ -274,7 +273,7 @@ class _PlaylistsTab extends ConsumerWidget {
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.bodyMedium
|
||||
?.copyWith(color: Colors.white60),
|
||||
?.copyWith(color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -283,7 +282,7 @@ class _PlaylistsTab extends ConsumerWidget {
|
||||
children: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.edit_outlined, size: 20),
|
||||
color: Colors.white70,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
onPressed: () =>
|
||||
_showPlaylistDialog(context, ref, playlist),
|
||||
tooltip: 'Edit',
|
||||
@@ -463,7 +462,7 @@ class _UsersTab extends ConsumerWidget {
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.bodyLarge
|
||||
?.copyWith(color: Colors.white70),
|
||||
?.copyWith(color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
GradientButton(
|
||||
label: 'Create User',
|
||||
@@ -491,7 +490,7 @@ class _UsersTab extends ConsumerWidget {
|
||||
Icon(
|
||||
Icons.people_outline,
|
||||
size: 64,
|
||||
color: AppColors.textSecondary.withOpacity(0.5),
|
||||
color: AppColors.onSurfaceVariant.withOpacity(0.5),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
@@ -519,7 +518,7 @@ class _UsersTab extends ConsumerWidget {
|
||||
height: 48,
|
||||
decoration: BoxDecoration(
|
||||
color: user.isAdmin
|
||||
? AppColors.focusColor
|
||||
? AppColors.primaryContainer
|
||||
: AppColors.surface,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
@@ -528,8 +527,8 @@ class _UsersTab extends ConsumerWidget {
|
||||
? Icons.admin_panel_settings
|
||||
: Icons.person,
|
||||
color: user.isAdmin
|
||||
? Colors.black
|
||||
: AppColors.textPrimary,
|
||||
? AppColors.onPrimaryContainer
|
||||
: AppColors.onSurface,
|
||||
size: 24,
|
||||
),
|
||||
),
|
||||
@@ -545,7 +544,7 @@ class _UsersTab extends ConsumerWidget {
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.titleMedium
|
||||
?.copyWith(color: Colors.white),
|
||||
?.copyWith(color: AppColors.onSurface),
|
||||
),
|
||||
if (user.isAdmin) ...[
|
||||
const SizedBox(width: 8),
|
||||
@@ -555,16 +554,16 @@ class _UsersTab extends ConsumerWidget {
|
||||
vertical: 2,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.focusColor
|
||||
color: AppColors.primaryContainer
|
||||
.withOpacity(0.2),
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
),
|
||||
child: const Text(
|
||||
child: Text(
|
||||
'ADMIN',
|
||||
style: TextStyle(
|
||||
fontSize: 10,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: AppColors.focusColor,
|
||||
color: AppColors.primaryContainer,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -577,7 +576,7 @@ class _UsersTab extends ConsumerWidget {
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.bodyMedium
|
||||
?.copyWith(color: Colors.white60),
|
||||
?.copyWith(color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -585,7 +584,7 @@ class _UsersTab extends ConsumerWidget {
|
||||
PopupMenuButton<String>(
|
||||
icon: const Icon(
|
||||
Icons.more_vert,
|
||||
color: Colors.white70,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
),
|
||||
color: AppColors.surface,
|
||||
shape: RoundedRectangleBorder(
|
||||
|
||||
@@ -51,22 +51,22 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
body: Stack(
|
||||
fit: StackFit.expand,
|
||||
children: [
|
||||
// 1. Cinematic Background (Abstract Gradient)
|
||||
// 1. Cinematic Background
|
||||
Container(
|
||||
decoration: const BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
colors: [
|
||||
Color(0xFF0D0D0D), // Almost Black
|
||||
Color(0xFF1A1A1A), // Dark Grey
|
||||
Color(0xFF0F0F0F), // Deep Dark
|
||||
Color(0xFF0F1014),
|
||||
Color(0xFF121317),
|
||||
Color(0xFF0D0E12),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// 2. Ambient Glows (Apple TV Style)
|
||||
// 2. Ambient Glows (Stitch style — blue diffuse)
|
||||
Positioned(
|
||||
top: -size.height * 0.2,
|
||||
right: -size.width * 0.1,
|
||||
@@ -77,7 +77,7 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
shape: BoxShape.circle,
|
||||
gradient: RadialGradient(
|
||||
colors: [
|
||||
Colors.white.withOpacity(0.05),
|
||||
AppColors.primary.withOpacity(0.06),
|
||||
Colors.transparent,
|
||||
],
|
||||
radius: 0.5,
|
||||
@@ -95,7 +95,7 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
shape: BoxShape.circle,
|
||||
gradient: RadialGradient(
|
||||
colors: [
|
||||
Colors.blue.withOpacity(0.03), // Subtle blue hint
|
||||
AppColors.primaryContainer.withOpacity(0.04),
|
||||
Colors.transparent,
|
||||
],
|
||||
radius: 0.5,
|
||||
@@ -118,15 +118,11 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
width: 120,
|
||||
height: 120,
|
||||
decoration: BoxDecoration(
|
||||
gradient: const LinearGradient(
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
colors: [Color(0xFF2C2C2E), Color(0xFF000000)],
|
||||
),
|
||||
gradient: AppColors.primaryGradient,
|
||||
borderRadius: BorderRadius.circular(32),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.5),
|
||||
color: AppColors.glowPrimary(0.3),
|
||||
blurRadius: 30,
|
||||
offset: const Offset(0, 15),
|
||||
),
|
||||
@@ -134,7 +130,7 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
),
|
||||
child: const Icon(
|
||||
Icons.play_arrow_rounded,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
size: 64,
|
||||
),
|
||||
),
|
||||
@@ -144,10 +140,10 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
// Title
|
||||
Text(
|
||||
'XtremFlow',
|
||||
style: GoogleFonts.inter(
|
||||
style: GoogleFonts.spaceGrotesk(
|
||||
fontSize: 42,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: AppColors.textPrimary,
|
||||
color: AppColors.onSurface,
|
||||
letterSpacing: -1.0,
|
||||
),
|
||||
),
|
||||
@@ -156,18 +152,17 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
'Sign in to sync your playlists',
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 18,
|
||||
color: AppColors.textSecondary,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 48),
|
||||
|
||||
// Login Form Container
|
||||
GlassContainer(
|
||||
GlassContainer.floating(
|
||||
width: 500,
|
||||
padding: const EdgeInsets.all(48), // Spacious padding
|
||||
padding: const EdgeInsets.all(48),
|
||||
borderRadius: 24,
|
||||
opacity: 0.7,
|
||||
child: Form(
|
||||
key: _formKey,
|
||||
child: Column(
|
||||
@@ -196,7 +191,7 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
_obscurePassword
|
||||
? Icons.visibility_outlined
|
||||
: Icons.visibility_off_outlined,
|
||||
color: AppColors.textSecondary,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
),
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
@@ -229,7 +224,7 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
Expanded(
|
||||
child: Text(
|
||||
authState.errorMessage!,
|
||||
style: const TextStyle(
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.error,
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -247,14 +242,20 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
TvFocusableCard(
|
||||
onTap: _handleLogin,
|
||||
scaleFactor: 1.03,
|
||||
focusColor: Colors.white,
|
||||
borderRadius: 16,
|
||||
child: Container(
|
||||
height: 60,
|
||||
alignment: Alignment.center,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
gradient: AppColors.primaryGradient,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: AppColors.glowPrimary(0.3),
|
||||
blurRadius: 16,
|
||||
offset: const Offset(0, 6),
|
||||
),
|
||||
],
|
||||
),
|
||||
child: authState.isLoading
|
||||
? const SizedBox(
|
||||
@@ -262,13 +263,13 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
height: 24,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 2.5,
|
||||
color: Colors.black,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
)
|
||||
: Text(
|
||||
'Sign In',
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.black,
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
@@ -285,7 +286,7 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
'Default: admin / admin',
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 14,
|
||||
color: AppColors.textTertiary,
|
||||
color: AppColors.outline,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -311,28 +312,34 @@ class _LoginScreenState extends ConsumerState<LoginScreen> {
|
||||
return TextFormField(
|
||||
controller: controller,
|
||||
obscureText: obscureText,
|
||||
style: GoogleFonts.inter(fontSize: 18, color: AppColors.textPrimary),
|
||||
style: GoogleFonts.inter(fontSize: 18, color: AppColors.onSurface),
|
||||
autofocus: autofocus,
|
||||
textInputAction: nextFocus ? TextInputAction.next : TextInputAction.done,
|
||||
onFieldSubmitted: isLast ? (_) => onSubmitted?.call() : null,
|
||||
decoration: InputDecoration(
|
||||
labelText: label,
|
||||
labelStyle: GoogleFonts.inter(color: AppColors.textSecondary),
|
||||
prefixIcon: Icon(icon, color: AppColors.textSecondary),
|
||||
labelStyle: GoogleFonts.inter(color: AppColors.onSurfaceVariant),
|
||||
prefixIcon: Icon(icon, color: AppColors.onSurfaceVariant),
|
||||
suffixIcon: suffix,
|
||||
filled: true,
|
||||
fillColor: AppColors.surfaceVariant.withOpacity(0.5),
|
||||
fillColor: AppColors.surfaceContainerLow,
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
borderSide: BorderSide.none,
|
||||
),
|
||||
enabledBorder: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
borderSide: BorderSide.none,
|
||||
borderSide: const BorderSide(
|
||||
color: AppColors.outlineVariant,
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
focusedBorder: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
borderSide: const BorderSide(color: AppColors.focusColor, width: 2),
|
||||
borderSide: const BorderSide(
|
||||
color: AppColors.primaryContainer,
|
||||
width: 2,
|
||||
),
|
||||
),
|
||||
contentPadding:
|
||||
const EdgeInsets.symmetric(horizontal: 20, vertical: 20),
|
||||
|
||||
@@ -49,15 +49,15 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
colors: [
|
||||
Color(0xFF0F1014), // Deep Space Blue-Grey
|
||||
Color(0xFF181920), // Darker shade
|
||||
Color(0xFF0F1014),
|
||||
Color(0xFF121317),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Ambient Glow (Subtle accent)
|
||||
// Ambient Glow — primary accent diffuse
|
||||
Positioned(
|
||||
top: -100,
|
||||
left: -100,
|
||||
@@ -68,7 +68,7 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
shape: BoxShape.circle,
|
||||
gradient: RadialGradient(
|
||||
colors: [
|
||||
AppColors.primary.withOpacity(0.2),
|
||||
AppColors.primary.withOpacity(0.06),
|
||||
Colors.transparent,
|
||||
],
|
||||
),
|
||||
@@ -91,19 +91,15 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
),
|
||||
),
|
||||
|
||||
// 3. Vertical Glass Sidebar
|
||||
// 3. Vertical Glass Sidebar (Stitch Level 2)
|
||||
Positioned(
|
||||
left: 24,
|
||||
top: 24,
|
||||
bottom: 24,
|
||||
width: 80,
|
||||
child: GlassContainer(
|
||||
child: GlassContainer.floating(
|
||||
borderRadius: 24,
|
||||
opacity: 0.1,
|
||||
// blur is hardcoded in GlassContainer (15), so we don't pass it
|
||||
// border is bool, borderColor allows customization
|
||||
border: true,
|
||||
borderColor: Colors.white.withOpacity(0.1),
|
||||
padding: EdgeInsets.zero,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
@@ -118,7 +114,7 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: AppColors.primary.withOpacity(0.4),
|
||||
color: AppColors.glowPrimary(0.4),
|
||||
blurRadius: 10,
|
||||
offset: const Offset(0, 4),
|
||||
),
|
||||
@@ -126,7 +122,7 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
),
|
||||
child: const Icon(
|
||||
Icons.play_arrow_rounded,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
size: 28,
|
||||
),
|
||||
),
|
||||
@@ -143,27 +139,37 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
onTap: () => setState(() => _selectedIndex = index),
|
||||
scaleFactor: 1.2,
|
||||
borderRadius: 16,
|
||||
focusColor: AppColors.primary,
|
||||
child: AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
width: 48,
|
||||
height: 48,
|
||||
decoration: BoxDecoration(
|
||||
color: isSelected
|
||||
? AppColors.primary.withOpacity(0.2)
|
||||
? AppColors.primary.withOpacity(0.15)
|
||||
: Colors.transparent,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: isSelected
|
||||
? Border.all(
|
||||
color: AppColors.primary.withOpacity(0.5),
|
||||
color: AppColors.primaryContainer
|
||||
.withOpacity(0.5),
|
||||
width: 2,
|
||||
)
|
||||
: null,
|
||||
boxShadow: isSelected
|
||||
? [
|
||||
BoxShadow(
|
||||
color: AppColors.glowPrimary(0.2),
|
||||
blurRadius: 12,
|
||||
spreadRadius: 1,
|
||||
),
|
||||
]
|
||||
: null,
|
||||
),
|
||||
child: Icon(
|
||||
_icons[index],
|
||||
color: isSelected
|
||||
? Colors.white
|
||||
: AppColors.textSecondary,
|
||||
? AppColors.onSurface
|
||||
: AppColors.onSurfaceVariant,
|
||||
size: 24,
|
||||
),
|
||||
),
|
||||
@@ -173,7 +179,7 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
|
||||
const Spacer(),
|
||||
|
||||
// Settings / Profile
|
||||
// Profile
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 24),
|
||||
child: TvFocusableCard(
|
||||
@@ -182,10 +188,11 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
|
||||
scaleFactor: 1.1,
|
||||
child: CircleAvatar(
|
||||
radius: 20,
|
||||
backgroundColor: Colors.white.withOpacity(0.1),
|
||||
child: const Icon(
|
||||
backgroundColor: AppColors.surfaceContainerHigh
|
||||
.withOpacity(0.5),
|
||||
child: Icon(
|
||||
Icons.person,
|
||||
color: Colors.white70,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
size: 20,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -379,7 +379,7 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
// LITE PLAYER MODE for Live TV - Simplified UI (no BackdropFilter)
|
||||
if (isLiveTV) {
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.black,
|
||||
backgroundColor: AppColors.background,
|
||||
body: Stack(
|
||||
fit: StackFit.expand,
|
||||
children: [
|
||||
@@ -420,7 +420,7 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [
|
||||
Colors.black.withOpacity(0.8),
|
||||
AppColors.background.withOpacity(0.8),
|
||||
Colors.transparent,
|
||||
],
|
||||
),
|
||||
@@ -450,8 +450,8 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
'Unknown')
|
||||
.toString()
|
||||
: widget.title,
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white,
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
@@ -494,7 +494,7 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.3),
|
||||
color: AppColors.background.withOpacity(0.3),
|
||||
blurRadius: 10,
|
||||
spreadRadius: 2,
|
||||
),
|
||||
@@ -510,7 +510,7 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
// EPG Info (top in mobile)
|
||||
_buildInlineEpg(),
|
||||
const SizedBox(height: 12),
|
||||
const Divider(color: Colors.white10),
|
||||
const Divider(color: AppColors.outlineVariant),
|
||||
const SizedBox(height: 8),
|
||||
// Control Buttons
|
||||
Row(
|
||||
@@ -554,7 +554,7 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
|
||||
// STANDARD PLAYER MODE (VOD/Series)
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.black,
|
||||
backgroundColor: AppColors.background,
|
||||
body: Stack(
|
||||
fit: StackFit.expand,
|
||||
children: [
|
||||
@@ -585,7 +585,7 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
Positioned.fill(
|
||||
child: PointerInterceptor(
|
||||
child: Container(
|
||||
color: Colors.black.withOpacity(0.4),
|
||||
color: AppColors.background.withOpacity(0.4),
|
||||
child: Stack(
|
||||
children: [
|
||||
// Top Bar
|
||||
@@ -593,10 +593,9 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
top: 24,
|
||||
left: 24,
|
||||
right: 24,
|
||||
child: GlassContainer(
|
||||
child: GlassContainer.glass(
|
||||
height: 72,
|
||||
borderRadius: 24,
|
||||
opacity: 0.1,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Row(
|
||||
children: [
|
||||
@@ -608,10 +607,10 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
Expanded(
|
||||
child: Text(
|
||||
widget.title,
|
||||
style: GoogleFonts.outfit(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -633,11 +632,8 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
bottom: 40,
|
||||
left: 40,
|
||||
right: 40,
|
||||
child: GlassContainer(
|
||||
child: GlassContainer.glass(
|
||||
borderRadius: 24,
|
||||
opacity: 0.2, // Slightly more opaque for controls
|
||||
border: true,
|
||||
borderColor: Colors.white.withOpacity(0.1),
|
||||
padding: const EdgeInsets.all(24),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -652,7 +648,7 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
),
|
||||
),
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.white70,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
@@ -663,7 +659,7 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
activeTrackColor: AppColors.primary,
|
||||
inactiveTrackColor:
|
||||
Colors.white.withOpacity(0.2),
|
||||
thumbColor: Colors.white,
|
||||
thumbColor: AppColors.onSurface,
|
||||
thumbShape: const RoundSliderThumbShape(
|
||||
enabledThumbRadius: 8,
|
||||
),
|
||||
@@ -704,7 +700,7 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
),
|
||||
),
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.white70,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -800,7 +796,7 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
? null
|
||||
: Border.all(color: Colors.white.withOpacity(0.1)),
|
||||
),
|
||||
child: Icon(icon, color: Colors.white, size: iconSize),
|
||||
child: Icon(icon, color: AppColors.onSurface, size: iconSize),
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -891,7 +887,7 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
),
|
||||
child: Icon(
|
||||
icon,
|
||||
color: highlighted ? AppColors.primary : Colors.white,
|
||||
color: highlighted ? AppColors.primary : AppColors.onSurface,
|
||||
size: iconSize,
|
||||
),
|
||||
),
|
||||
@@ -923,13 +919,13 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.red,
|
||||
color: AppColors.error,
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
),
|
||||
child: const Text(
|
||||
'LIVE',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -941,8 +937,8 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
widget.channels != null
|
||||
? widget.channels![_currentIndex].name
|
||||
: widget.title,
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white,
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
@@ -971,13 +967,13 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.red,
|
||||
color: AppColors.error,
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
),
|
||||
child: const Text(
|
||||
'LIVE',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -991,8 +987,8 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
children: [
|
||||
Text(
|
||||
currentProgram.title,
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white,
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
@@ -1003,7 +999,7 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
Text(
|
||||
currentProgram.description,
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.white60,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
fontSize: 12,
|
||||
),
|
||||
maxLines: 1,
|
||||
@@ -1020,13 +1016,13 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.red,
|
||||
color: AppColors.error,
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
),
|
||||
child: const Text(
|
||||
'LIVE',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -1037,8 +1033,8 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
widget.channels != null
|
||||
? widget.channels![_currentIndex].name
|
||||
: widget.title,
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white,
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
@@ -1049,8 +1045,8 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
||||
widget.channels != null
|
||||
? widget.channels![_currentIndex].name
|
||||
: widget.title,
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white,
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
|
||||
@@ -27,9 +27,9 @@ class PlaylistSelectionScreen extends ConsumerWidget {
|
||||
appBar: AppBar(
|
||||
title: Text(
|
||||
'Select Playlist',
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
backgroundColor: Colors.transparent,
|
||||
@@ -38,12 +38,12 @@ class PlaylistSelectionScreen extends ConsumerWidget {
|
||||
if (currentUser?.isAdmin ?? false)
|
||||
IconButton(
|
||||
icon:
|
||||
const Icon(Icons.admin_panel_settings, color: Colors.white70),
|
||||
const Icon(Icons.admin_panel_settings, color: AppColors.onSurfaceVariant),
|
||||
onPressed: () => context.go('/admin'),
|
||||
tooltip: 'Admin Panel',
|
||||
),
|
||||
IconButton(
|
||||
icon: const Icon(Icons.logout, color: Colors.white70),
|
||||
icon: const Icon(Icons.logout, color: AppColors.onSurfaceVariant),
|
||||
onPressed: () async {
|
||||
await ref.read(authProvider.notifier).logout();
|
||||
if (context.mounted) {
|
||||
@@ -78,9 +78,9 @@ class PlaylistSelectionScreen extends ConsumerWidget {
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
'Error loading playlists',
|
||||
style: GoogleFonts.outfit(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 18,
|
||||
color: Colors.white70,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
@@ -88,7 +88,7 @@ class PlaylistSelectionScreen extends ConsumerWidget {
|
||||
onPressed: () => ref.refresh(playlistsProvider),
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: AppColors.primary,
|
||||
foregroundColor: Colors.white,
|
||||
foregroundColor: AppColors.onSurface,
|
||||
),
|
||||
child: Text('Retry', style: GoogleFonts.inter()),
|
||||
),
|
||||
@@ -104,14 +104,14 @@ class PlaylistSelectionScreen extends ConsumerWidget {
|
||||
const Icon(
|
||||
Icons.playlist_remove,
|
||||
size: 64,
|
||||
color: Colors.white24,
|
||||
color: AppColors.outlineVariant,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
'No playlists available',
|
||||
style: GoogleFonts.outfit(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 18,
|
||||
color: Colors.white60,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
@@ -121,7 +121,7 @@ class PlaylistSelectionScreen extends ConsumerWidget {
|
||||
: 'Contact administrator',
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 14,
|
||||
color: Colors.white38,
|
||||
color: AppColors.outline,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -246,16 +246,16 @@ class _PlaylistCardState extends State<_PlaylistCard> {
|
||||
child: Icon(
|
||||
Icons.playlist_play_rounded,
|
||||
size: 32,
|
||||
color: _isHovered ? Colors.white : Colors.white70,
|
||||
color: _isHovered ? AppColors.onSurface : AppColors.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
Text(
|
||||
widget.playlist.name,
|
||||
style: GoogleFonts.outfit(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 22,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
height: 1.2,
|
||||
),
|
||||
maxLines: 2,
|
||||
@@ -266,7 +266,7 @@ class _PlaylistCardState extends State<_PlaylistCard> {
|
||||
Uri.tryParse(widget.playlist.dns)?.host ?? widget.playlist.dns,
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 13,
|
||||
color: Colors.white38,
|
||||
color: AppColors.outline,
|
||||
letterSpacing: 0.5,
|
||||
),
|
||||
maxLines: 1,
|
||||
|
||||
@@ -6,6 +6,7 @@ import '../../../core/models/playlist_config.dart';
|
||||
import '../models/xtream_models.dart';
|
||||
import '../providers/xtream_provider.dart';
|
||||
import '../providers/watch_history_provider.dart';
|
||||
import '../../../core/theme/app_colors.dart';
|
||||
import 'player_screen.dart';
|
||||
|
||||
/// Series detail screen showing seasons and episodes
|
||||
@@ -75,13 +76,13 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(widget.series.name),
|
||||
backgroundColor: Colors.black87,
|
||||
backgroundColor: AppColors.background,
|
||||
leading: IconButton(
|
||||
icon: const Icon(Icons.arrow_back, color: Colors.white),
|
||||
icon: const Icon(Icons.arrow_back, color: AppColors.onSurface),
|
||||
onPressed: () => Navigator.pop(context),
|
||||
),
|
||||
),
|
||||
backgroundColor: Colors.grey.shade900,
|
||||
backgroundColor: AppColors.surfaceContainerLow,
|
||||
body: _isLoading
|
||||
? const Center(child: CircularProgressIndicator())
|
||||
: _error != null
|
||||
@@ -89,9 +90,9 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
const Icon(Icons.error_outline, size: 48, color: Colors.red),
|
||||
const Icon(Icons.error_outline, size: 48, color: AppColors.error),
|
||||
const SizedBox(height: 16),
|
||||
Text('Error: $_error', style: const TextStyle(color: Colors.white70)),
|
||||
Text('Error: $_error', style: const TextStyle(color: AppColors.onSurfaceVariant)),
|
||||
const SizedBox(height: 16),
|
||||
ElevatedButton(
|
||||
onPressed: _loadSeriesInfo,
|
||||
@@ -132,8 +133,8 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
errorWidget: (_, __, ___) => Container(
|
||||
width: 248,
|
||||
height: 350,
|
||||
color: Colors.grey.shade800,
|
||||
child: const Icon(Icons.tv, size: 64, color: Colors.white54),
|
||||
color: AppColors.surfaceContainer,
|
||||
child: const Icon(Icons.tv, size: 64, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -142,10 +143,10 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
// Title
|
||||
Text(
|
||||
_seriesInfo!.name,
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
@@ -158,7 +159,7 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
const SizedBox(width: 4),
|
||||
Text(
|
||||
_formatRating(_seriesInfo!.rating!)!,
|
||||
style: GoogleFonts.roboto(fontSize: 13, color: Colors.white70),
|
||||
style: GoogleFonts.roboto(fontSize: 13, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -168,7 +169,7 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
if (_seriesInfo!.plot != null && _seriesInfo!.plot!.isNotEmpty)
|
||||
Text(
|
||||
_seriesInfo!.plot!,
|
||||
style: GoogleFonts.roboto(fontSize: 12, color: Colors.white60),
|
||||
style: GoogleFonts.roboto(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
maxLines: 5,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
@@ -177,10 +178,10 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
// Season selector
|
||||
Text(
|
||||
'Seasons',
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
@@ -197,10 +198,10 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
setState(() => _selectedSeason = seasonNum);
|
||||
}
|
||||
},
|
||||
selectedColor: Colors.blue.shade700,
|
||||
backgroundColor: Colors.grey.shade800,
|
||||
labelStyle: GoogleFonts.roboto(
|
||||
color: isSelected ? Colors.white : Colors.white70,
|
||||
selectedColor: AppColors.primaryContainer,
|
||||
backgroundColor: AppColors.surfaceContainer,
|
||||
labelStyle: GoogleFonts.inter(
|
||||
color: isSelected ? AppColors.onPrimary : AppColors.onSurfaceVariant,
|
||||
fontSize: 12,
|
||||
),
|
||||
);
|
||||
@@ -212,7 +213,7 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
),
|
||||
|
||||
// Divider
|
||||
Container(width: 1, color: Colors.grey.shade700),
|
||||
Container(width: 1, color: AppColors.surfaceContainerHigh),
|
||||
|
||||
// Right panel: Episodes list
|
||||
Expanded(
|
||||
@@ -223,10 +224,10 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Text(
|
||||
'Season $_selectedSeason - ${currentEpisodes.length} Episodes',
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -235,7 +236,7 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
? Center(
|
||||
child: Text(
|
||||
'No episodes found',
|
||||
style: GoogleFonts.roboto(color: Colors.white54),
|
||||
style: GoogleFonts.roboto(color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
)
|
||||
: ListView.builder(
|
||||
@@ -264,7 +265,7 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
final isWatched = watchHistory.isEpisodeWatched(episodeKey);
|
||||
|
||||
return Card(
|
||||
color: Colors.grey.shade800,
|
||||
color: AppColors.surfaceContainer,
|
||||
margin: const EdgeInsets.only(bottom: 8),
|
||||
child: InkWell(
|
||||
onTap: () async {
|
||||
@@ -314,18 +315,18 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
width: 40,
|
||||
height: 40,
|
||||
decoration: BoxDecoration(
|
||||
color: isWatched ? Colors.green : Colors.blue.shade700,
|
||||
color: isWatched ? AppColors.success : AppColors.primaryContainer,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Center(
|
||||
child: isWatched
|
||||
? const Icon(Icons.check, color: Colors.white, size: 20)
|
||||
? const Icon(Icons.check, color: AppColors.onSurface, size: 20)
|
||||
: Text(
|
||||
'${episode.episodeNum}',
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -342,7 +343,7 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
style: GoogleFonts.roboto(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: isWatched ? Colors.white54 : Colors.white,
|
||||
color: isWatched ? AppColors.onSurfaceVariant : AppColors.onSurface,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
@@ -352,7 +353,7 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
_formatDuration(episode.durationSecs!),
|
||||
style: GoogleFonts.roboto(
|
||||
fontSize: 12,
|
||||
color: Colors.white54,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -362,7 +363,7 @@ class _SeriesDetailScreenState extends ConsumerState<SeriesDetailScreen> {
|
||||
// Play icon
|
||||
Icon(
|
||||
isWatched ? Icons.replay : Icons.play_circle_outline,
|
||||
color: Colors.white70,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
size: 28,
|
||||
),
|
||||
],
|
||||
|
||||
@@ -134,14 +134,14 @@ class _ChannelCardState extends ConsumerState<ChannelCard>
|
||||
color: AppColors.surface, // Fallback color
|
||||
// Thick white border on focus (tvOS style)
|
||||
border: Border.all(
|
||||
color: _isHovered ? AppColors.focusColor : Colors.transparent,
|
||||
color: _isHovered ? AppColors.primaryContainer : Colors.transparent,
|
||||
width: _isHovered ? 3 : 0,
|
||||
),
|
||||
// Deep shadow on focus
|
||||
boxShadow: _isHovered
|
||||
? [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.5),
|
||||
color: AppColors.background.withOpacity(0.5),
|
||||
blurRadius: 30,
|
||||
offset: const Offset(0, 15),
|
||||
spreadRadius: 2,
|
||||
@@ -149,7 +149,7 @@ class _ChannelCardState extends ConsumerState<ChannelCard>
|
||||
]
|
||||
: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.2),
|
||||
color: AppColors.background.withOpacity(0.2),
|
||||
blurRadius: 4,
|
||||
offset: const Offset(0, 2),
|
||||
),
|
||||
@@ -169,7 +169,7 @@ class _ChannelCardState extends ConsumerState<ChannelCard>
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
colors: [Colors.transparent, Colors.black.withOpacity(0.4)],
|
||||
colors: [Colors.transparent, AppColors.background.withOpacity(0.4)],
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
),
|
||||
@@ -188,7 +188,7 @@ class _ChannelCardState extends ConsumerState<ChannelCard>
|
||||
color: AppColors.live,
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
),
|
||||
child: const Text('LIVE', style: TextStyle(color: Colors.white, fontSize: 9, fontWeight: FontWeight.bold)),
|
||||
child: const Text('LIVE', style: TextStyle(color: AppColors.onSurface, fontSize: 9, fontWeight: FontWeight.bold)),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -201,7 +201,7 @@ class _ChannelCardState extends ConsumerState<ChannelCard>
|
||||
onTap: () => ref.read(favoritesProvider.notifier).toggleFavorite(widget.streamId),
|
||||
child: Icon(
|
||||
isFavorite ? Icons.favorite : Icons.favorite_border,
|
||||
color: isFavorite ? AppColors.live : Colors.white.withOpacity(0.7),
|
||||
color: isFavorite ? AppColors.live : AppColors.onSurface.withOpacity(0.7),
|
||||
size: 20,
|
||||
),
|
||||
),
|
||||
@@ -227,7 +227,7 @@ class _ChannelCardState extends ConsumerState<ChannelCard>
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
color: _isHovered ? AppColors.focusColor : AppColors.textSecondary,
|
||||
color: _isHovered ? AppColors.primaryContainer : AppColors.onSurfaceVariant,
|
||||
fontWeight: _isHovered ? FontWeight.bold : FontWeight.w500,
|
||||
fontSize: 13,
|
||||
),
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'dart:async';
|
||||
import 'package:flutter/material.dart';
|
||||
import '../../../core/theme/app_colors.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
class ClockWidget extends StatefulWidget {
|
||||
@@ -45,10 +46,10 @@ class _ClockWidgetState extends State<ClockWidget> {
|
||||
return Text(
|
||||
timeString,
|
||||
style: widget.style ?? const TextStyle(
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.bold,
|
||||
shadows: [Shadow(color: Colors.black, blurRadius: 4)],
|
||||
shadows: [Shadow(color: AppColors.background, blurRadius: 4)],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import '../../../core/models/playlist_config.dart';
|
||||
import '../../../core/models/iptv_models.dart';
|
||||
import '../providers/xtream_provider.dart';
|
||||
import '../../../core/theme/app_colors.dart';
|
||||
|
||||
/// Minimal EPG overlay - shows program title and info
|
||||
class EpgOverlay extends ConsumerWidget {
|
||||
@@ -60,13 +61,13 @@ class EpgOverlay extends ConsumerWidget {
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.red,
|
||||
color: AppColors.error,
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
),
|
||||
child: const Text(
|
||||
'LIVE',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 12, // Larger
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -82,10 +83,10 @@ class EpgOverlay extends ConsumerWidget {
|
||||
Text(
|
||||
currentProgram.title,
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 18, // Much Larger
|
||||
fontWeight: FontWeight.bold,
|
||||
shadows: [Shadow(color: Colors.black, blurRadius: 4)],
|
||||
shadows: [Shadow(color: AppColors.background, blurRadius: 4)],
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
@@ -94,7 +95,7 @@ class EpgOverlay extends ConsumerWidget {
|
||||
Text(
|
||||
currentProgram.description,
|
||||
style: const TextStyle(
|
||||
color: Colors.white70,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
fontSize: 13, // Larger desc
|
||||
),
|
||||
maxLines: 1,
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:google_fonts/google_fonts.dart';
|
||||
import '../../../core/models/playlist_config.dart';
|
||||
import '../providers/xtream_provider.dart';
|
||||
import '../models/xtream_models.dart';
|
||||
import '../../../core/theme/app_colors.dart';
|
||||
|
||||
class EPGWidget extends ConsumerStatefulWidget {
|
||||
final String channelId;
|
||||
@@ -76,7 +77,7 @@ class _EPGWidgetState extends ConsumerState<EPGWidget> {
|
||||
return Container(
|
||||
padding: const EdgeInsets.all(8),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black.withOpacity(0.6),
|
||||
color: AppColors.background.withOpacity(0.6),
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
),
|
||||
child: Column(
|
||||
@@ -93,15 +94,15 @@ class _EPGWidgetState extends ConsumerState<EPGWidget> {
|
||||
vertical: 2,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.red,
|
||||
color: AppColors.error,
|
||||
borderRadius: BorderRadius.circular(3),
|
||||
),
|
||||
child: Text(
|
||||
'LIVE',
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 9,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -112,7 +113,7 @@ class _EPGWidgetState extends ConsumerState<EPGWidget> {
|
||||
style: GoogleFonts.roboto(
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
@@ -128,8 +129,8 @@ class _EPGWidgetState extends ConsumerState<EPGWidget> {
|
||||
borderRadius: BorderRadius.circular(2),
|
||||
child: LinearProgressIndicator(
|
||||
value: _epg!.progress!.clamp(0.0, 1.0),
|
||||
backgroundColor: Colors.white24,
|
||||
valueColor: const AlwaysStoppedAnimation<Color>(Colors.red),
|
||||
backgroundColor: AppColors.outlineVariant,
|
||||
valueColor: const AlwaysStoppedAnimation<Color>(AppColors.error),
|
||||
minHeight: 3,
|
||||
),
|
||||
),
|
||||
@@ -144,7 +145,7 @@ class _EPGWidgetState extends ConsumerState<EPGWidget> {
|
||||
Icon(
|
||||
Icons.upcoming,
|
||||
size: 12,
|
||||
color: Colors.grey.shade400,
|
||||
color: AppColors.outline,
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
Expanded(
|
||||
@@ -152,7 +153,7 @@ class _EPGWidgetState extends ConsumerState<EPGWidget> {
|
||||
'Next: ${_epg!.nextPlaying}',
|
||||
style: GoogleFonts.roboto(
|
||||
fontSize: 10,
|
||||
color: Colors.grey.shade400,
|
||||
color: AppColors.outline,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
|
||||
@@ -64,7 +64,10 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
body: channelsAsync.when(
|
||||
loading: () => const ThemedLoading(),
|
||||
error: (e, s) => Center(
|
||||
child: Text('Error: $e', style: const TextStyle(color: Colors.white)),
|
||||
child: Text(
|
||||
'Error: $e',
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface),
|
||||
),
|
||||
),
|
||||
data: (groupedChannels) {
|
||||
var categories = groupedChannels.keys.toList();
|
||||
@@ -73,7 +76,6 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
.where((cat) => settings.matchesLiveTvFilter(cat))
|
||||
.toList();
|
||||
}
|
||||
// REMOVED: categories.sort(); - Respect API/Settings order
|
||||
|
||||
List<Channel> displayedChannels = [];
|
||||
bool showingCategoryGrid = false;
|
||||
@@ -96,12 +98,11 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
// HEADER (Glass)
|
||||
// HEADER (Glass Level 1)
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(24, 16, 24, 16),
|
||||
child: GlassContainer(
|
||||
child: GlassContainer.glass(
|
||||
borderRadius: 16,
|
||||
opacity: 0.6,
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 20, vertical: 12),
|
||||
child: Row(
|
||||
@@ -120,12 +121,13 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(8),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.1),
|
||||
color: AppColors.surfaceContainerHigh
|
||||
.withOpacity(0.5),
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: const Icon(
|
||||
child: Icon(
|
||||
Icons.arrow_back,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -139,10 +141,10 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
: _showFavoritesOnly
|
||||
? 'Favorites'
|
||||
: _selectedCategory ?? 'Live TV',
|
||||
style: GoogleFonts.inter(
|
||||
style: GoogleFonts.spaceGrotesk(
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
@@ -154,17 +156,22 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
width: 250,
|
||||
height: 44,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.1),
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
border: Border.all(
|
||||
color: AppColors.outlineVariant,
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
child: TextField(
|
||||
controller: _searchController,
|
||||
style: GoogleFonts.inter(color: Colors.white),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface),
|
||||
decoration: InputDecoration(
|
||||
hintText: 'Search channels...',
|
||||
hintStyle: GoogleFonts.inter(color: Colors.white54),
|
||||
hintStyle:
|
||||
GoogleFonts.inter(color: AppColors.outline),
|
||||
prefixIcon:
|
||||
const Icon(Icons.search, color: Colors.white54),
|
||||
Icon(Icons.search, color: AppColors.outline),
|
||||
border: InputBorder.none,
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
@@ -172,9 +179,9 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
),
|
||||
suffixIcon: _searchQuery.isNotEmpty
|
||||
? IconButton(
|
||||
icon: const Icon(
|
||||
icon: Icon(
|
||||
Icons.clear,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
onPressed: _searchController.clear,
|
||||
)
|
||||
@@ -199,7 +206,8 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
decoration: BoxDecoration(
|
||||
color: _showFavoritesOnly
|
||||
? AppColors.live.withOpacity(0.2)
|
||||
: Colors.white.withOpacity(0.1),
|
||||
: AppColors.surfaceContainerHigh
|
||||
.withOpacity(0.5),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
border: _showFavoritesOnly
|
||||
? Border.all(color: AppColors.live)
|
||||
@@ -211,7 +219,7 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
: Icons.favorite_border,
|
||||
color: _showFavoritesOnly
|
||||
? AppColors.live
|
||||
: Colors.white,
|
||||
: AppColors.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -232,20 +240,19 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
Icon(
|
||||
Icons.tv_off,
|
||||
size: 64,
|
||||
color: Colors.white.withOpacity(0.3),
|
||||
color: AppColors.outline,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
'No channels found',
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.white54,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
fontSize: 18,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
// Use raw grid for now, but wrapped in focusable cards
|
||||
: _buildChannelGrid(displayedChannels),
|
||||
),
|
||||
],
|
||||
@@ -288,10 +295,9 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
});
|
||||
},
|
||||
borderRadius: 16,
|
||||
child: GlassContainer(
|
||||
child: GlassContainer.glass(
|
||||
borderRadius: 16,
|
||||
opacity: 0.2, // Darker glass
|
||||
padding: const EdgeInsets.all(0),
|
||||
padding: EdgeInsets.zero,
|
||||
child: Stack(
|
||||
children: [
|
||||
// Background Gradient
|
||||
@@ -301,8 +307,8 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
colors: [
|
||||
Colors.white.withOpacity(0.05),
|
||||
Colors.blue.withOpacity(0.05),
|
||||
AppColors.surfaceContainerLow.withOpacity(0.5),
|
||||
AppColors.primary.withOpacity(0.03),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -313,7 +319,7 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
children: [
|
||||
Icon(
|
||||
Icons.folder_copy_outlined,
|
||||
color: Colors.white.withOpacity(0.9),
|
||||
color: AppColors.onSurfaceVariant,
|
||||
size: 32,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
@@ -325,7 +331,7 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
@@ -336,7 +342,7 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
'$count Channels',
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 13,
|
||||
color: Colors.white54,
|
||||
color: AppColors.outline,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -365,7 +371,7 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
crossAxisCount: columns,
|
||||
mainAxisSpacing: 16,
|
||||
crossAxisSpacing: 16,
|
||||
childAspectRatio: 1.0, // Square-ish cards
|
||||
childAspectRatio: 1.0,
|
||||
),
|
||||
itemCount: channels.length,
|
||||
itemBuilder: (context, index) {
|
||||
@@ -375,7 +381,7 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
borderRadius: 12,
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.surfaceVariant,
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
child: Stack(
|
||||
@@ -388,8 +394,8 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
Expanded(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(
|
||||
0.05), // Subtle transparent background
|
||||
color: AppColors.surfaceContainer
|
||||
.withOpacity(0.5),
|
||||
borderRadius: const BorderRadius.vertical(
|
||||
top: Radius.circular(12)),
|
||||
),
|
||||
@@ -400,16 +406,16 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
_getProxiedIconUrl(channel.streamIcon)!,
|
||||
errorBuilder: (_, __, ___) => Icon(
|
||||
Icons.tv,
|
||||
color: Colors.white.withOpacity(0.3),
|
||||
color: AppColors.outline,
|
||||
size: 40,
|
||||
),
|
||||
)
|
||||
: Text(
|
||||
channel.name.characters.first.toUpperCase(),
|
||||
style: GoogleFonts.outfit(
|
||||
style: GoogleFonts.spaceGrotesk(
|
||||
fontSize: 40,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white24,
|
||||
color: AppColors.outlineVariant,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -419,14 +425,18 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 12, vertical: 8),
|
||||
color: Colors.black54,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.surfaceContainerHigh.withOpacity(0.9),
|
||||
borderRadius: const BorderRadius.vertical(
|
||||
bottom: Radius.circular(12)),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
channel.name,
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
@@ -451,7 +461,7 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
return Text(
|
||||
'No Info',
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.white54,
|
||||
color: AppColors.outline,
|
||||
fontSize: 10,
|
||||
),
|
||||
);
|
||||
@@ -478,7 +488,7 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
return Text(
|
||||
currentProgram.title,
|
||||
style: GoogleFonts.inter(
|
||||
color: const Color(0xFFFFD700),
|
||||
color: AppColors.ratingGold,
|
||||
fontSize: 10,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
@@ -489,14 +499,14 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
loading: () => Text(
|
||||
'...',
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.white24,
|
||||
color: AppColors.outlineVariant,
|
||||
fontSize: 10,
|
||||
),
|
||||
),
|
||||
error: (_, __) => Text(
|
||||
'Err',
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.red,
|
||||
color: AppColors.error,
|
||||
fontSize: 10,
|
||||
),
|
||||
),
|
||||
@@ -508,7 +518,7 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
),
|
||||
],
|
||||
),
|
||||
// Record Button Icon Overlay (Positioned top right)
|
||||
// Record Button Icon Overlay
|
||||
Positioned(
|
||||
top: 8,
|
||||
right: 8,
|
||||
@@ -521,12 +531,12 @@ class _LiveTVTabState extends ConsumerState<LiveTVTab>
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(6),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black.withOpacity(0.5),
|
||||
color: AppColors.background.withOpacity(0.5),
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: const Icon(
|
||||
Icons.fiber_manual_record,
|
||||
color: Colors.redAccent,
|
||||
color: AppColors.error,
|
||||
size: 16,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -150,12 +150,10 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
Future<void> _playMovie(Movie movie) async {
|
||||
ref.read(watchHistoryProvider.notifier).markMovieWatched(movie.streamId);
|
||||
|
||||
// Fetch actual duration from API if not available in movie data
|
||||
Duration? movieDuration;
|
||||
if (movie.durationSecs != null && movie.durationSecs! > 0) {
|
||||
movieDuration = Duration(seconds: movie.durationSecs!);
|
||||
} else {
|
||||
// Try to fetch from API
|
||||
final service = ref.read(xtreamServiceProvider(widget.playlist));
|
||||
final durationSecs = await service.getVodDuration(movie.streamId);
|
||||
if (durationSecs != null && durationSecs > 0) {
|
||||
@@ -213,19 +211,18 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(24, 16, 24, 24),
|
||||
child: GlassContainer(
|
||||
child: GlassContainer.glass(
|
||||
borderRadius: 100,
|
||||
opacity: 0.6,
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
'Movies',
|
||||
style: GoogleFonts.inter(
|
||||
style: GoogleFonts.spaceGrotesk(
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
const Spacer(),
|
||||
@@ -235,16 +232,20 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
width: 300,
|
||||
height: 40,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.1),
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(100),
|
||||
border: Border.all(
|
||||
color: AppColors.outlineVariant,
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(
|
||||
Icon(
|
||||
Icons.search,
|
||||
size: 20,
|
||||
color: Colors.white54,
|
||||
color: AppColors.outline,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
@@ -252,12 +253,12 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
controller: _searchController,
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 14,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
decoration: InputDecoration(
|
||||
hintText: 'Search movies...',
|
||||
hintStyle:
|
||||
GoogleFonts.inter(color: Colors.white54),
|
||||
GoogleFonts.inter(color: AppColors.outline),
|
||||
border: InputBorder.none,
|
||||
isDense: true,
|
||||
contentPadding:
|
||||
@@ -272,7 +273,7 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
height: 16,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
if (_searchQuery.isNotEmpty)
|
||||
@@ -281,10 +282,10 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
_searchController.clear();
|
||||
_onSearchChanged('');
|
||||
},
|
||||
child: const Icon(
|
||||
child: Icon(
|
||||
Icons.close,
|
||||
size: 16,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -352,23 +353,23 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
_getProxiedImageUrl(movie.streamIcon),
|
||||
fit: BoxFit.cover,
|
||||
errorBuilder: (ctx, err, stack) => Container(
|
||||
color: AppColors.surfaceVariant,
|
||||
child: const Center(
|
||||
color: AppColors.surfaceContainerLow,
|
||||
child: Center(
|
||||
child: Icon(
|
||||
Icons.movie,
|
||||
size: 48,
|
||||
color: Colors.white24,
|
||||
color: AppColors.outline,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
: Container(
|
||||
color: AppColors.surfaceVariant,
|
||||
child: const Center(
|
||||
color: AppColors.surfaceContainerLow,
|
||||
child: Center(
|
||||
child: Icon(
|
||||
Icons.movie,
|
||||
size: 48,
|
||||
color: Colors.white24,
|
||||
color: AppColors.outline,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -387,7 +388,7 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [
|
||||
Colors.transparent,
|
||||
Colors.black.withOpacity(0.9),
|
||||
AppColors.baseLevel0.withOpacity(0.9),
|
||||
],
|
||||
),
|
||||
borderRadius: const BorderRadius.vertical(
|
||||
@@ -408,9 +409,10 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
vertical: 2,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black.withOpacity(0.7),
|
||||
color: AppColors.background.withOpacity(0.7),
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
border: Border.all(color: Colors.white24),
|
||||
border: Border.all(
|
||||
color: AppColors.outlineVariant),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -418,7 +420,7 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
const Icon(
|
||||
Icons.star,
|
||||
size: 10,
|
||||
color: Colors.amber,
|
||||
color: Color(0xFFFFD700),
|
||||
),
|
||||
const SizedBox(width: 4),
|
||||
Text(
|
||||
@@ -426,7 +428,7 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 10,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -446,12 +448,12 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
Text(
|
||||
movie.name,
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w600,
|
||||
shadows: [
|
||||
const Shadow(
|
||||
color: Colors.black,
|
||||
color: AppColors.background,
|
||||
blurRadius: 4,
|
||||
),
|
||||
],
|
||||
@@ -489,7 +491,7 @@ class _MoviesTabState extends ConsumerState<MoviesTab> {
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(32),
|
||||
child: Center(
|
||||
child: CircularProgressIndicator(color: Colors.white),
|
||||
child: CircularProgressIndicator(color: AppColors.onSurface),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -101,7 +101,7 @@ class _RecordingModalState extends State<RecordingModal> {
|
||||
// Header
|
||||
Row(
|
||||
children: [
|
||||
const Icon(Icons.fiber_manual_record, color: Colors.red),
|
||||
const Icon(Icons.fiber_manual_record, color: AppColors.error),
|
||||
const SizedBox(width: 12),
|
||||
Expanded(
|
||||
child: Text(
|
||||
@@ -109,7 +109,7 @@ class _RecordingModalState extends State<RecordingModal> {
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -120,12 +120,12 @@ class _RecordingModalState extends State<RecordingModal> {
|
||||
// Informations Chaine
|
||||
Text(
|
||||
'Chaîne ciblée :',
|
||||
style: GoogleFonts.inter(color: Colors.white54, fontSize: 14),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurfaceVariant, fontSize: 14),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
widget.channel.name,
|
||||
style: GoogleFonts.inter(color: Colors.white, fontSize: 18),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface, fontSize: 18),
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
|
||||
@@ -139,7 +139,7 @@ class _RecordingModalState extends State<RecordingModal> {
|
||||
children: [
|
||||
Text(
|
||||
'Date :',
|
||||
style: GoogleFonts.inter(color: Colors.white54, fontSize: 14),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurfaceVariant, fontSize: 14),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
TvFocusableCard(
|
||||
@@ -168,12 +168,12 @@ class _RecordingModalState extends State<RecordingModal> {
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.calendar_today, color: Colors.white, size: 18),
|
||||
const Icon(Icons.calendar_today, color: AppColors.onSurface, size: 18),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'${_startTime.day.toString().padLeft(2, '0')}/${_startTime.month.toString().padLeft(2, '0')}/${_startTime.year}',
|
||||
style: GoogleFonts.inter(color: Colors.white),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
@@ -193,7 +193,7 @@ class _RecordingModalState extends State<RecordingModal> {
|
||||
children: [
|
||||
Text(
|
||||
'Heure :',
|
||||
style: GoogleFonts.inter(color: Colors.white54, fontSize: 14),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurfaceVariant, fontSize: 14),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
TvFocusableCard(
|
||||
@@ -231,12 +231,12 @@ class _RecordingModalState extends State<RecordingModal> {
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.access_time, color: Colors.white, size: 18),
|
||||
const Icon(Icons.access_time, color: AppColors.onSurface, size: 18),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'${_startTime.hour.toString().padLeft(2, '0')}:${_startTime.minute.toString().padLeft(2, '0')}',
|
||||
style: GoogleFonts.inter(color: Colors.white),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -255,17 +255,16 @@ class _RecordingModalState extends State<RecordingModal> {
|
||||
children: [
|
||||
Text(
|
||||
'Durée (min) :',
|
||||
style: GoogleFonts.inter(color: Colors.white54, fontSize: 14),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurfaceVariant, fontSize: 14),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
GlassContainer(
|
||||
GlassContainer.glass(
|
||||
borderRadius: 8,
|
||||
opacity: 0.1,
|
||||
padding: EdgeInsets.zero,
|
||||
child: Row(
|
||||
children: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.remove, color: Colors.white, size: 18),
|
||||
icon: const Icon(Icons.remove, color: AppColors.onSurface, size: 18),
|
||||
padding: EdgeInsets.zero,
|
||||
constraints: const BoxConstraints(minWidth: 32, minHeight: 46),
|
||||
onPressed: () {
|
||||
@@ -278,11 +277,11 @@ class _RecordingModalState extends State<RecordingModal> {
|
||||
child: Text(
|
||||
'$_durationMinutes',
|
||||
textAlign: TextAlign.center,
|
||||
style: GoogleFonts.inter(color: Colors.white),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface),
|
||||
),
|
||||
),
|
||||
IconButton(
|
||||
icon: const Icon(Icons.add, color: Colors.white, size: 18),
|
||||
icon: const Icon(Icons.add, color: AppColors.onSurface, size: 18),
|
||||
padding: EdgeInsets.zero,
|
||||
constraints: const BoxConstraints(minWidth: 32, minHeight: 46),
|
||||
onPressed: () {
|
||||
@@ -309,7 +308,7 @@ class _RecordingModalState extends State<RecordingModal> {
|
||||
onPressed: _isLoading ? null : () => Navigator.of(context).pop(),
|
||||
child: Text(
|
||||
'Annuler',
|
||||
style: GoogleFonts.inter(color: Colors.white54),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
@@ -319,18 +318,18 @@ class _RecordingModalState extends State<RecordingModal> {
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.redAccent.withOpacity(0.8),
|
||||
color: AppColors.error.withOpacity(0.8),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: _isLoading
|
||||
? const SizedBox(
|
||||
width: 20, height: 20,
|
||||
child: CircularProgressIndicator(color: Colors.white, strokeWidth: 2),
|
||||
child: CircularProgressIndicator(color: AppColors.onSurface, strokeWidth: 2),
|
||||
)
|
||||
: Text(
|
||||
'Enregistrer de suite',
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
@@ -349,12 +348,12 @@ class _RecordingModalState extends State<RecordingModal> {
|
||||
child: _isLoading
|
||||
? const SizedBox(
|
||||
width: 20, height: 20,
|
||||
child: CircularProgressIndicator(color: Colors.white, strokeWidth: 2),
|
||||
child: CircularProgressIndicator(color: AppColors.onSurface, strokeWidth: 2),
|
||||
)
|
||||
: Text(
|
||||
'Programmer',
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import '../../../core/models/iptv_models.dart';
|
||||
import '../../../core/models/playlist_config.dart';
|
||||
import '../../../core/theme/app_colors.dart';
|
||||
import '../../../core/widgets/glass_container.dart';
|
||||
import '../providers/xtream_provider.dart';
|
||||
import '../providers/settings_provider.dart';
|
||||
@@ -49,24 +50,24 @@ class _RecordingsTabState extends State<RecordingsTab>
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(children: [
|
||||
const Icon(Icons.tv, color: Colors.white, size: 28),
|
||||
const Icon(Icons.tv, color: AppColors.onSurface, size: 28),
|
||||
const SizedBox(width: 12),
|
||||
Text('TV & Enregistrements',
|
||||
style: GoogleFonts.outfit(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 26,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white)),
|
||||
color: AppColors.onSurface)),
|
||||
]),
|
||||
const SizedBox(height: 16),
|
||||
TabBar(
|
||||
controller: _tabController,
|
||||
labelColor: Colors.white,
|
||||
unselectedLabelColor: Colors.white54,
|
||||
indicatorColor: Colors.redAccent,
|
||||
labelColor: AppColors.onSurface,
|
||||
unselectedLabelColor: AppColors.onSurfaceVariant,
|
||||
indicatorColor: AppColors.live,
|
||||
indicatorWeight: 3,
|
||||
labelStyle: GoogleFonts.outfit(
|
||||
labelStyle: GoogleFonts.inter(
|
||||
fontWeight: FontWeight.w600, fontSize: 14),
|
||||
unselectedLabelStyle: GoogleFonts.outfit(fontSize: 14),
|
||||
unselectedLabelStyle: GoogleFonts.inter(fontSize: 14),
|
||||
tabs: const [
|
||||
Tab(icon: Icon(Icons.grid_view, size: 18), text: 'Guide TV'),
|
||||
Tab(
|
||||
@@ -218,8 +219,8 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
child: Column(
|
||||
children: [
|
||||
Text('GROUPES',
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white38,
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.outline,
|
||||
fontSize: 10,
|
||||
fontWeight: FontWeight.bold,
|
||||
letterSpacing: 1.2)),
|
||||
@@ -242,16 +243,16 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
margin: const EdgeInsets.only(bottom: 4),
|
||||
decoration: BoxDecoration(
|
||||
color: isSelected
|
||||
? Colors.white.withOpacity(0.1)
|
||||
? AppColors.outlineVariant
|
||||
: Colors.transparent,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Text(
|
||||
cat,
|
||||
style: GoogleFonts.outfit(
|
||||
style: GoogleFonts.inter(
|
||||
color: isSelected
|
||||
? Colors.white
|
||||
: Colors.white60,
|
||||
? AppColors.onSurface
|
||||
: AppColors.onSurfaceVariant,
|
||||
fontSize: 12,
|
||||
fontWeight: isSelected
|
||||
? FontWeight.bold
|
||||
@@ -268,7 +269,7 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
),
|
||||
),
|
||||
|
||||
const VerticalDivider(width: 32, color: Colors.white10),
|
||||
const VerticalDivider(width: 32, color: AppColors.outlineVariant),
|
||||
|
||||
// ── Colonne 2 : CHAÎNES ──
|
||||
SizedBox(
|
||||
@@ -277,15 +278,15 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
// Barre de recherche
|
||||
TextField(
|
||||
controller: _searchCtrl,
|
||||
style: const TextStyle(color: Colors.white, fontSize: 13),
|
||||
style: const TextStyle(color: AppColors.onSurface, fontSize: 13),
|
||||
decoration: InputDecoration(
|
||||
hintText: 'Rechercher...',
|
||||
hintStyle:
|
||||
const TextStyle(color: Colors.white38, fontSize: 13),
|
||||
const TextStyle(color: AppColors.outline, fontSize: 13),
|
||||
prefixIcon: const Icon(Icons.search,
|
||||
color: Colors.white38, size: 18),
|
||||
color: AppColors.outline, size: 18),
|
||||
filled: true,
|
||||
fillColor: Colors.white.withOpacity(0.07),
|
||||
fillColor: AppColors.surfaceContainer,
|
||||
contentPadding: const EdgeInsets.symmetric(vertical: 8),
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
@@ -299,7 +300,7 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
? Center(
|
||||
child: Text('Aucune chaîne',
|
||||
style: TextStyle(
|
||||
color: Colors.white24, fontSize: 12)))
|
||||
color: AppColors.outline, fontSize: 12)))
|
||||
: ListView.builder(
|
||||
itemCount: visibleChannels.length,
|
||||
itemBuilder: (ctx, i) {
|
||||
@@ -315,12 +316,12 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
horizontal: 10, vertical: 8),
|
||||
decoration: BoxDecoration(
|
||||
color: isSelected
|
||||
? Colors.redAccent.withOpacity(0.2)
|
||||
: Colors.white.withOpacity(0.05),
|
||||
? AppColors.live.withOpacity(0.2)
|
||||
: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
border: Border.all(
|
||||
color: isSelected
|
||||
? Colors.redAccent.withOpacity(0.5)
|
||||
? AppColors.live.withOpacity(0.5)
|
||||
: Colors.transparent,
|
||||
),
|
||||
),
|
||||
@@ -332,18 +333,18 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
fit: BoxFit.contain,
|
||||
errorBuilder: (_, __, ___) =>
|
||||
const Icon(Icons.tv,
|
||||
color: Colors.white24,
|
||||
color: AppColors.outline,
|
||||
size: 16))
|
||||
: const Icon(Icons.tv,
|
||||
color: Colors.white24, size: 16),
|
||||
color: AppColors.outline, size: 16),
|
||||
const SizedBox(width: 10),
|
||||
Expanded(
|
||||
child: Text(
|
||||
ch.name,
|
||||
style: GoogleFonts.outfit(
|
||||
style: GoogleFonts.inter(
|
||||
color: isSelected
|
||||
? Colors.white
|
||||
: Colors.white70,
|
||||
? AppColors.onSurface
|
||||
: AppColors.onSurfaceVariant,
|
||||
fontSize: 12,
|
||||
),
|
||||
maxLines: 1,
|
||||
@@ -359,7 +360,7 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
]),
|
||||
),
|
||||
|
||||
const VerticalDivider(width: 32, color: Colors.white10),
|
||||
const VerticalDivider(width: 32, color: AppColors.outlineVariant),
|
||||
|
||||
// ── Colonne droite : programmes EPG ──
|
||||
Expanded(
|
||||
@@ -368,14 +369,14 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(Icons.tv_off,
|
||||
size: 64, color: Color(0x1FFFFFFF)),
|
||||
Icon(Icons.tv_off,
|
||||
size: 64, color: AppColors.outline.withOpacity(0.1)),
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
'Sélectionnez une chaîne\npour voir son guide des programmes',
|
||||
textAlign: TextAlign.center,
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white38, fontSize: 15),
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.outline, fontSize: 15),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -386,8 +387,8 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
Row(children: [
|
||||
Text(
|
||||
_selectedChannel!.name,
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white,
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.onSurface,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 16,
|
||||
),
|
||||
@@ -395,12 +396,12 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
const Spacer(),
|
||||
IconButton(
|
||||
icon: const Icon(Icons.refresh,
|
||||
color: Colors.white54, size: 18),
|
||||
color: AppColors.onSurfaceVariant, size: 18),
|
||||
tooltip: 'Recharger l\'EPG',
|
||||
onPressed: () => _loadEpg(_selectedChannel!),
|
||||
),
|
||||
]),
|
||||
const Divider(color: Colors.white12),
|
||||
const Divider(color: AppColors.outlineVariant),
|
||||
Expanded(
|
||||
child: _loadingEpg
|
||||
? const Center(
|
||||
@@ -410,7 +411,7 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
child: Text(
|
||||
'Erreur EPG: $_epgError',
|
||||
style: const TextStyle(
|
||||
color: Colors.redAccent,
|
||||
color: AppColors.live,
|
||||
fontSize: 12),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
@@ -420,8 +421,8 @@ class _EpgGuideViewState extends ConsumerState<_EpgGuideView>
|
||||
child: Text(
|
||||
'Aucun programme EPG disponible\npour cette chaîne',
|
||||
textAlign: TextAlign.center,
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white38),
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.outline),
|
||||
),
|
||||
)
|
||||
: ListView.builder(
|
||||
@@ -503,28 +504,28 @@ class _ProgrammeCard extends StatelessWidget {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (ctx) => AlertDialog(
|
||||
backgroundColor: const Color(0xFF1E1E2E),
|
||||
backgroundColor: AppColors.surfaceContainerHigh,
|
||||
title: Row(children: [
|
||||
const Icon(Icons.fiber_manual_record,
|
||||
color: Colors.redAccent, size: 20),
|
||||
color: AppColors.live, size: 20),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: Text('Enregistrer',
|
||||
style: GoogleFonts.outfit(color: Colors.white))),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface))),
|
||||
]),
|
||||
content: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(title.isEmpty ? channel.name : title,
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white,
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.onSurface,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 16)),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
'${_fmt(_start)} → ${_fmt(_end)}',
|
||||
style: const TextStyle(color: Colors.white70),
|
||||
style: const TextStyle(color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
if (_description.isNotEmpty) ...[
|
||||
const SizedBox(height: 8),
|
||||
@@ -532,7 +533,7 @@ class _ProgrammeCard extends StatelessWidget {
|
||||
_description,
|
||||
maxLines: 3,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(color: Colors.white38, fontSize: 12),
|
||||
style: const TextStyle(color: AppColors.outline, fontSize: 12),
|
||||
),
|
||||
],
|
||||
],
|
||||
@@ -542,7 +543,7 @@ class _ProgrammeCard extends StatelessWidget {
|
||||
onPressed: () => Navigator.pop(ctx),
|
||||
child: const Text('Annuler')),
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(backgroundColor: Colors.redAccent),
|
||||
style: ElevatedButton.styleFrom(backgroundColor: AppColors.live),
|
||||
onPressed: () async {
|
||||
Navigator.pop(ctx);
|
||||
await _saveRecording(
|
||||
@@ -575,8 +576,8 @@ class _ProgrammeCard extends StatelessWidget {
|
||||
? '✅ "$title" planifié !'
|
||||
: '❌ Erreur: ${response.body}'),
|
||||
backgroundColor: response.statusCode == 200
|
||||
? Colors.green.shade800
|
||||
: Colors.red.shade800,
|
||||
? AppColors.success
|
||||
: AppColors.error,
|
||||
));
|
||||
}
|
||||
} catch (e) {
|
||||
@@ -596,15 +597,15 @@ class _ProgrammeCard extends StatelessWidget {
|
||||
margin: const EdgeInsets.only(bottom: 6),
|
||||
decoration: BoxDecoration(
|
||||
color: isNow
|
||||
? Colors.red.withOpacity(0.15)
|
||||
? AppColors.live.withOpacity(0.15)
|
||||
: isPast
|
||||
? Colors.white.withOpacity(0.03)
|
||||
: Colors.white.withOpacity(0.06),
|
||||
? AppColors.surfaceContainerLowest
|
||||
: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
border: Border.all(
|
||||
color: isNow
|
||||
? Colors.redAccent.withOpacity(0.4)
|
||||
: Colors.white.withOpacity(0.07),
|
||||
? AppColors.live.withOpacity(0.4)
|
||||
: AppColors.surfaceContainer,
|
||||
),
|
||||
),
|
||||
child: ListTile(
|
||||
@@ -619,19 +620,19 @@ class _ProgrammeCard extends StatelessWidget {
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 5, vertical: 2),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.redAccent,
|
||||
color: AppColors.live,
|
||||
borderRadius: BorderRadius.circular(4)),
|
||||
child: Text('LIVE',
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white,
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 8,
|
||||
fontWeight: FontWeight.bold)),
|
||||
)
|
||||
else
|
||||
Text(
|
||||
_fmt(_start),
|
||||
style: GoogleFonts.outfit(
|
||||
color: isPast ? Colors.white24 : Colors.white70,
|
||||
style: GoogleFonts.inter(
|
||||
color: isPast ? AppColors.outline : AppColors.onSurfaceVariant,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
@@ -640,15 +641,15 @@ class _ProgrammeCard extends StatelessWidget {
|
||||
Text(
|
||||
_fmt(_end),
|
||||
style:
|
||||
GoogleFonts.outfit(color: Colors.white24, fontSize: 10),
|
||||
GoogleFonts.inter(color: AppColors.outline, fontSize: 10),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
title: Text(
|
||||
_title.isEmpty ? '—' : _title,
|
||||
style: GoogleFonts.outfit(
|
||||
color: isPast ? Colors.white38 : Colors.white,
|
||||
style: GoogleFonts.inter(
|
||||
color: isPast ? AppColors.outline : AppColors.onSurface,
|
||||
fontWeight: isNow ? FontWeight.bold : FontWeight.normal,
|
||||
),
|
||||
maxLines: 2,
|
||||
@@ -659,13 +660,13 @@ class _ProgrammeCard extends StatelessWidget {
|
||||
_description,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(color: Colors.white38, fontSize: 11),
|
||||
style: const TextStyle(color: AppColors.outline, fontSize: 11),
|
||||
)
|
||||
: null,
|
||||
trailing: !isPast
|
||||
? IconButton(
|
||||
icon: const Icon(Icons.fiber_manual_record,
|
||||
color: Colors.redAccent, size: 20),
|
||||
color: AppColors.live, size: 20),
|
||||
tooltip: 'Enregistrer ce programme',
|
||||
onPressed: () => _record(context),
|
||||
)
|
||||
@@ -746,16 +747,16 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (ctx) => AlertDialog(
|
||||
backgroundColor: const Color(0xFF1E1E2E),
|
||||
backgroundColor: AppColors.surfaceContainerHigh,
|
||||
title: Text(title,
|
||||
style: GoogleFonts.outfit(color: Colors.white, fontSize: 14)),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface, fontSize: 14)),
|
||||
content: SizedBox(
|
||||
width: 500,
|
||||
height: 300,
|
||||
child: SingleChildScrollView(
|
||||
child: Text(content,
|
||||
style: const TextStyle(
|
||||
color: Colors.white70,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
fontSize: 11,
|
||||
fontFamily: 'monospace')),
|
||||
),
|
||||
@@ -776,10 +777,10 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
||||
}
|
||||
|
||||
Color _statusColor(String status) => switch (status) {
|
||||
'recording' => Colors.redAccent,
|
||||
'completed' => Colors.green,
|
||||
'failed' => Colors.orangeAccent,
|
||||
_ => Colors.blueAccent,
|
||||
'recording' => AppColors.live,
|
||||
'completed' => AppColors.success,
|
||||
'failed' => AppColors.warning,
|
||||
_ => AppColors.primaryContainer,
|
||||
};
|
||||
|
||||
String _statusLabel(String status) => switch (status) {
|
||||
@@ -809,7 +810,7 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
||||
children: [
|
||||
Row(mainAxisAlignment: MainAxisAlignment.end, children: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.refresh, color: Colors.white70),
|
||||
icon: const Icon(Icons.refresh, color: AppColors.onSurfaceVariant),
|
||||
onPressed: _fetchRecordings,
|
||||
tooltip: 'Rafraîchir',
|
||||
),
|
||||
@@ -820,18 +821,18 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
||||
: _error != null
|
||||
? Center(
|
||||
child: Text(_error!,
|
||||
style: const TextStyle(color: Colors.redAccent)))
|
||||
style: const TextStyle(color: AppColors.live)))
|
||||
: _recordings.isEmpty
|
||||
? Center(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(Icons.videocam_off,
|
||||
size: 64, color: Color(0x1FFFFFFF)),
|
||||
Icon(Icons.videocam_off,
|
||||
size: 64, color: AppColors.outline.withOpacity(0.1)),
|
||||
const SizedBox(height: 16),
|
||||
Text('Aucun enregistrement',
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white38, fontSize: 16)),
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.outline, fontSize: 16)),
|
||||
],
|
||||
),
|
||||
)
|
||||
@@ -845,10 +846,10 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
||||
return Container(
|
||||
margin: const EdgeInsets.only(bottom: 8),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.05),
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
border: Border.all(
|
||||
color: Colors.white.withOpacity(0.1)),
|
||||
color: AppColors.outlineVariant),
|
||||
),
|
||||
child: ListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
@@ -861,8 +862,8 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
||||
size: 28,
|
||||
),
|
||||
title: Text(rec['title'] ?? '—',
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white,
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.onSurface,
|
||||
fontWeight: FontWeight.w600)),
|
||||
subtitle: Column(
|
||||
crossAxisAlignment:
|
||||
@@ -871,13 +872,13 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
||||
Text(
|
||||
'${_fmtDate(rec['start_time'])} → ${_fmtDate(rec['end_time'])}',
|
||||
style: const TextStyle(
|
||||
color: Colors.white54,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
fontSize: 12),
|
||||
),
|
||||
if (rec['error_reason'] != null)
|
||||
Text('⚠ ${rec['error_reason']}',
|
||||
style: const TextStyle(
|
||||
color: Colors.orangeAccent,
|
||||
color: AppColors.warning,
|
||||
fontSize: 11)),
|
||||
],
|
||||
),
|
||||
@@ -904,7 +905,7 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
||||
if (status == 'recording')
|
||||
IconButton(
|
||||
icon: const Icon(Icons.stop_circle,
|
||||
color: Colors.redAccent),
|
||||
color: AppColors.live),
|
||||
tooltip: 'Arrêter',
|
||||
onPressed: () => _stopRecording(
|
||||
rec['id'], rec['title'] ?? ''),
|
||||
@@ -912,7 +913,7 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
||||
IconButton(
|
||||
icon: const Icon(
|
||||
Icons.description_outlined,
|
||||
color: Colors.blueAccent,
|
||||
color: AppColors.primaryContainer,
|
||||
size: 20),
|
||||
tooltip: 'Logs',
|
||||
onPressed: () => _showLogs(
|
||||
@@ -920,7 +921,7 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
||||
),
|
||||
IconButton(
|
||||
icon: const Icon(Icons.delete_outline,
|
||||
color: Colors.white38, size: 20),
|
||||
color: AppColors.outline, size: 20),
|
||||
tooltip: 'Supprimer',
|
||||
onPressed: () =>
|
||||
_deleteRecording(rec['id']),
|
||||
@@ -991,19 +992,19 @@ class _SeasonPassesViewState extends State<_SeasonPassesView> {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (ctx) => AlertDialog(
|
||||
backgroundColor: const Color(0xFF1E1E2E),
|
||||
backgroundColor: AppColors.surfaceContainerHigh,
|
||||
title: Row(children: [
|
||||
const Icon(Icons.repeat, color: Colors.purpleAccent),
|
||||
const Icon(Icons.repeat, color: AppColors.primary),
|
||||
const SizedBox(width: 8),
|
||||
Text('Nouveau Season Pass',
|
||||
style: GoogleFonts.outfit(color: Colors.white)),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface)),
|
||||
]),
|
||||
content: SizedBox(
|
||||
width: 400,
|
||||
child: Column(mainAxisSize: MainAxisSize.min, children: [
|
||||
Text(
|
||||
'Enregistre automatiquement toutes les nouvelles diffusions d\'une émission.',
|
||||
style: GoogleFonts.outfit(color: Colors.white54, fontSize: 13),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurfaceVariant, fontSize: 13),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
_buildField(
|
||||
@@ -1021,7 +1022,7 @@ class _SeasonPassesViewState extends State<_SeasonPassesView> {
|
||||
child: const Text('Annuler')),
|
||||
ElevatedButton(
|
||||
style:
|
||||
ElevatedButton.styleFrom(backgroundColor: Colors.purpleAccent),
|
||||
ElevatedButton.styleFrom(backgroundColor: AppColors.primary),
|
||||
onPressed: () async {
|
||||
final t = titleCtrl.text.trim();
|
||||
final c = channelCtrl.text.trim();
|
||||
@@ -1055,14 +1056,14 @@ class _SeasonPassesViewState extends State<_SeasonPassesView> {
|
||||
Widget _buildField(TextEditingController c, String label) {
|
||||
return TextField(
|
||||
controller: c,
|
||||
style: const TextStyle(color: Colors.white),
|
||||
style: const TextStyle(color: AppColors.onSurface),
|
||||
decoration: InputDecoration(
|
||||
labelText: label,
|
||||
labelStyle: const TextStyle(color: Colors.white54, fontSize: 12),
|
||||
labelStyle: const TextStyle(color: AppColors.onSurfaceVariant, fontSize: 12),
|
||||
enabledBorder: const UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.white24)),
|
||||
borderSide: BorderSide(color: AppColors.outline)),
|
||||
focusedBorder: const UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.purpleAccent)),
|
||||
borderSide: BorderSide(color: AppColors.primary)),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -1076,10 +1077,10 @@ class _SeasonPassesViewState extends State<_SeasonPassesView> {
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text('Enregistrements automatiques',
|
||||
style: GoogleFonts.outfit(color: Colors.white54, fontSize: 13)),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurfaceVariant, fontSize: 13)),
|
||||
ElevatedButton.icon(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: Colors.purpleAccent),
|
||||
backgroundColor: AppColors.primary),
|
||||
icon: const Icon(Icons.add, size: 18),
|
||||
label: const Text('Nouveau'),
|
||||
onPressed: _showCreate,
|
||||
@@ -1090,19 +1091,19 @@ class _SeasonPassesViewState extends State<_SeasonPassesView> {
|
||||
Container(
|
||||
padding: const EdgeInsets.all(12),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.purpleAccent.withOpacity(0.08),
|
||||
color: AppColors.primary.withOpacity(0.08),
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
border: Border.all(color: Colors.purpleAccent.withOpacity(0.2)),
|
||||
border: Border.all(color: AppColors.primary.withOpacity(0.2)),
|
||||
),
|
||||
child: Row(children: [
|
||||
const Icon(Icons.info_outline,
|
||||
color: Colors.purpleAccent, size: 18),
|
||||
color: AppColors.primary, size: 18),
|
||||
const SizedBox(width: 12),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'Scanne l\'EPG toutes les 4h et programme automatiquement les nouvelles diffusions. Seuls les nouveaux épisodes sont enregistrés.',
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.purpleAccent.shade100, fontSize: 12),
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.primaryFixedDim, fontSize: 12),
|
||||
),
|
||||
),
|
||||
]),
|
||||
@@ -1116,17 +1117,17 @@ class _SeasonPassesViewState extends State<_SeasonPassesView> {
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(Icons.repeat,
|
||||
size: 64, color: Color(0x1FFFFFFF)),
|
||||
Icon(Icons.repeat,
|
||||
size: 64, color: AppColors.outline.withOpacity(0.1)),
|
||||
const SizedBox(height: 16),
|
||||
Text('Aucun Season Pass actif',
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white38, fontSize: 16)),
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.outline, fontSize: 16)),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
'Créez-en un pour enregistrer automatiquement vos émissions préférées',
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white24, fontSize: 12),
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.outline, fontSize: 12),
|
||||
textAlign: TextAlign.center),
|
||||
],
|
||||
),
|
||||
@@ -1138,32 +1139,32 @@ class _SeasonPassesViewState extends State<_SeasonPassesView> {
|
||||
return Container(
|
||||
margin: const EdgeInsets.only(bottom: 8),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.purpleAccent.withOpacity(0.08),
|
||||
color: AppColors.primary.withOpacity(0.08),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
border: Border.all(
|
||||
color: Colors.purpleAccent.withOpacity(0.2)),
|
||||
color: AppColors.primary.withOpacity(0.2)),
|
||||
),
|
||||
child: ListTile(
|
||||
leading: const Icon(Icons.repeat,
|
||||
color: Colors.purpleAccent),
|
||||
color: AppColors.primary),
|
||||
title: Text(p['show_title'] ?? '—',
|
||||
style: GoogleFonts.outfit(
|
||||
color: Colors.white,
|
||||
style: GoogleFonts.inter(
|
||||
color: AppColors.onSurface,
|
||||
fontWeight: FontWeight.w600)),
|
||||
subtitle: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text('Chaîne : ${p['channel_id']}',
|
||||
style: const TextStyle(
|
||||
color: Colors.white54, fontSize: 11)),
|
||||
color: AppColors.onSurfaceVariant, fontSize: 11)),
|
||||
Text('Flux : ${p['stream_url']}',
|
||||
style: const TextStyle(
|
||||
color: Colors.white38, fontSize: 10)),
|
||||
color: AppColors.outline, fontSize: 10)),
|
||||
],
|
||||
),
|
||||
trailing: IconButton(
|
||||
icon: const Icon(Icons.delete_outline,
|
||||
color: Colors.white38),
|
||||
color: AppColors.outline),
|
||||
tooltip: 'Supprimer',
|
||||
onPressed: () =>
|
||||
_deletePass(p['id'], p['show_title'] ?? ''),
|
||||
|
||||
@@ -191,19 +191,18 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(24, 16, 24, 24),
|
||||
child: GlassContainer(
|
||||
child: GlassContainer.glass(
|
||||
borderRadius: 100,
|
||||
opacity: 0.6,
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
'TV Series',
|
||||
style: GoogleFonts.inter(
|
||||
style: GoogleFonts.spaceGrotesk(
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
const Spacer(),
|
||||
@@ -211,16 +210,20 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
|
||||
width: 300,
|
||||
height: 40,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.1),
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(100),
|
||||
border: Border.all(
|
||||
color: AppColors.outlineVariant,
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(
|
||||
Icon(
|
||||
Icons.search,
|
||||
size: 20,
|
||||
color: Colors.white54,
|
||||
color: AppColors.outline,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
@@ -228,12 +231,12 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
|
||||
controller: _searchController,
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 14,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
decoration: InputDecoration(
|
||||
hintText: 'Search series...',
|
||||
hintStyle:
|
||||
GoogleFonts.inter(color: Colors.white54),
|
||||
GoogleFonts.inter(color: AppColors.outline),
|
||||
border: InputBorder.none,
|
||||
isDense: true,
|
||||
contentPadding:
|
||||
@@ -248,7 +251,7 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
|
||||
height: 16,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
if (_searchQuery.isNotEmpty)
|
||||
@@ -257,10 +260,10 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
|
||||
_searchController.clear();
|
||||
_onSearchChanged('');
|
||||
},
|
||||
child: const Icon(
|
||||
child: Icon(
|
||||
Icons.close,
|
||||
size: 16,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -341,23 +344,23 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
|
||||
_getProxiedImageUrl(serie.cover),
|
||||
fit: BoxFit.cover,
|
||||
errorBuilder: (ctx, err, stack) => Container(
|
||||
color: AppColors.surfaceVariant,
|
||||
child: const Center(
|
||||
color: AppColors.surfaceContainerLow,
|
||||
child: Center(
|
||||
child: Icon(
|
||||
Icons.tv,
|
||||
size: 48,
|
||||
color: Colors.white24,
|
||||
color: AppColors.outline,
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
: Container(
|
||||
color: AppColors.surfaceVariant,
|
||||
child: const Center(
|
||||
color: AppColors.surfaceContainerLow,
|
||||
child: Center(
|
||||
child: Icon(
|
||||
Icons.tv,
|
||||
size: 48,
|
||||
color: Colors.white24,
|
||||
color: AppColors.outline,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -376,7 +379,7 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [
|
||||
Colors.transparent,
|
||||
Colors.black.withOpacity(0.9),
|
||||
AppColors.baseLevel0.withOpacity(0.9),
|
||||
],
|
||||
),
|
||||
borderRadius: const BorderRadius.vertical(
|
||||
@@ -394,12 +397,12 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
|
||||
child: Text(
|
||||
serie.name,
|
||||
style: GoogleFonts.inter(
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w600,
|
||||
shadows: [
|
||||
const Shadow(
|
||||
color: Colors.black,
|
||||
color: AppColors.background,
|
||||
blurRadius: 4,
|
||||
),
|
||||
],
|
||||
@@ -420,9 +423,10 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
|
||||
vertical: 2,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black.withOpacity(0.7),
|
||||
color: AppColors.background.withOpacity(0.7),
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
border: Border.all(color: Colors.white24),
|
||||
border: Border.all(
|
||||
color: AppColors.outlineVariant),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -430,7 +434,7 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
|
||||
const Icon(
|
||||
Icons.star,
|
||||
size: 10,
|
||||
color: Colors.amber,
|
||||
color: Color(0xFFFFD700),
|
||||
),
|
||||
const SizedBox(width: 4),
|
||||
Text(
|
||||
@@ -438,7 +442,7 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 10,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -460,7 +464,7 @@ class _SeriesTabState extends ConsumerState<SeriesTab> {
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(32),
|
||||
child: Center(
|
||||
child: CircularProgressIndicator(color: Colors.white),
|
||||
child: CircularProgressIndicator(color: AppColors.onSurface),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -77,17 +77,17 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
Container(
|
||||
margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.05),
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
),
|
||||
child: TabBar(
|
||||
controller: _tabController,
|
||||
indicator: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.1),
|
||||
color: AppColors.outlineVariant,
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
),
|
||||
labelColor: Colors.white,
|
||||
unselectedLabelColor: Colors.white54,
|
||||
labelColor: AppColors.onSurface,
|
||||
unselectedLabelColor: AppColors.onSurfaceVariant,
|
||||
dividerColor: Colors.transparent,
|
||||
overlayColor: WidgetStateProperty.all(Colors.transparent),
|
||||
tabs: [
|
||||
@@ -138,9 +138,9 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
// Theme selection card
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.05),
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: Colors.white.withOpacity(0.1)),
|
||||
border: Border.all(color: AppColors.outlineVariant),
|
||||
),
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
@@ -150,7 +150,7 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
children: [
|
||||
const Icon(
|
||||
Icons.dark_mode,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
Text(
|
||||
@@ -158,7 +158,7 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -201,25 +201,25 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
// Quick toggle card
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.05),
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: Colors.white.withOpacity(0.1)),
|
||||
border: Border.all(color: AppColors.outlineVariant),
|
||||
),
|
||||
child: ListTile(
|
||||
leading: Icon(
|
||||
isDark ? Icons.dark_mode : Icons.light_mode,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
title: Text(
|
||||
'Mode actuel',
|
||||
style: GoogleFonts.inter(
|
||||
fontWeight: FontWeight.w500,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
subtitle: Text(
|
||||
isDark ? 'Thème sombre actif' : 'Thème clair actif',
|
||||
style: const TextStyle(color: Colors.white70),
|
||||
style: const TextStyle(color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
trailing: Switch(
|
||||
value: isDark,
|
||||
@@ -228,7 +228,7 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
trackColor: WidgetStateProperty.resolveWith(
|
||||
(states) => states.contains(WidgetState.selected)
|
||||
? AppColors.primary.withOpacity(0.5)
|
||||
: Colors.grey.shade800,
|
||||
: AppColors.surfaceContainerHigh,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -318,34 +318,34 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
// User info card
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.05),
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: Colors.white.withOpacity(0.1)),
|
||||
border: Border.all(color: AppColors.outlineVariant),
|
||||
),
|
||||
padding: const EdgeInsets.all(4),
|
||||
child: ListTile(
|
||||
leading: const Icon(Icons.person, color: Colors.white),
|
||||
leading: const Icon(Icons.person, color: AppColors.onSurface),
|
||||
title: Text(
|
||||
'Connecté en tant que',
|
||||
style: GoogleFonts.roboto(fontSize: 12, color: Colors.white70),
|
||||
style: GoogleFonts.inter(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
subtitle: Text(
|
||||
currentUser?.username ?? 'Unknown',
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
trailing: currentUser?.isAdmin ?? false
|
||||
? Chip(
|
||||
label: Text(
|
||||
'Admin',
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 11,
|
||||
color: Colors.black,
|
||||
color: AppColors.onPrimaryContainer,
|
||||
),
|
||||
),
|
||||
backgroundColor: Colors.white,
|
||||
backgroundColor: AppColors.onSurface,
|
||||
)
|
||||
: null,
|
||||
),
|
||||
@@ -355,18 +355,18 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
// Category filters section
|
||||
Text(
|
||||
'Filtres de Catégories',
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 16,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
'Seules les catégories contenant un de ces mots-clés seront affichées. Séparez par des virgules.',
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 12,
|
||||
color: Colors.white54,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
@@ -422,17 +422,17 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
// Change playlist
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.05),
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: Colors.white.withOpacity(0.1)),
|
||||
border: Border.all(color: AppColors.outlineVariant),
|
||||
),
|
||||
child: ListTile(
|
||||
leading: const Icon(Icons.playlist_play, color: Colors.white),
|
||||
leading: const Icon(Icons.playlist_play, color: AppColors.onSurface),
|
||||
title: Text(
|
||||
'Changer de Playlist',
|
||||
style: GoogleFonts.roboto(color: Colors.white),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface),
|
||||
),
|
||||
trailing: const Icon(Icons.chevron_right, color: Colors.white54),
|
||||
trailing: const Icon(Icons.chevron_right, color: AppColors.onSurfaceVariant),
|
||||
onTap: () => context.go('/playlists'),
|
||||
),
|
||||
),
|
||||
@@ -441,19 +441,19 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
// About
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.05),
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: Colors.white.withOpacity(0.1)),
|
||||
border: Border.all(color: AppColors.outlineVariant),
|
||||
),
|
||||
child: ListTile(
|
||||
leading: const Icon(Icons.info_outline, color: Colors.white),
|
||||
leading: const Icon(Icons.info_outline, color: AppColors.onSurface),
|
||||
title: Text(
|
||||
'À propos',
|
||||
style: GoogleFonts.roboto(color: Colors.white),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface),
|
||||
),
|
||||
subtitle: Text(
|
||||
'XtremFlow IPTV v1.0.0',
|
||||
style: GoogleFonts.roboto(fontSize: 12, color: Colors.white54),
|
||||
style: GoogleFonts.inter(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -462,19 +462,19 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
// Maintenance Section
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.05),
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: Colors.orange.withOpacity(0.3)),
|
||||
border: Border.all(color: AppColors.warning.withOpacity(0.3)),
|
||||
),
|
||||
child: ListTile(
|
||||
leading: const Icon(Icons.cleaning_services, color: Colors.orange),
|
||||
leading: const Icon(Icons.cleaning_services, color: AppColors.warning),
|
||||
title: Text(
|
||||
'Maintenance',
|
||||
style: GoogleFonts.roboto(color: Colors.white),
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface),
|
||||
),
|
||||
subtitle: Text(
|
||||
'En cas de problèmes d\'affichage ou de mise à jour',
|
||||
style: GoogleFonts.roboto(fontSize: 12, color: Colors.white54),
|
||||
style: GoogleFonts.inter(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
trailing: FilledButton.icon(
|
||||
onPressed: () {
|
||||
@@ -485,12 +485,12 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
backgroundColor: const Color(0xFF1E1E1E),
|
||||
title: const Text(
|
||||
'Vider le cache ?',
|
||||
style: TextStyle(color: Colors.white),
|
||||
style: TextStyle(color: AppColors.onSurface),
|
||||
),
|
||||
content: const Text(
|
||||
'Cette action va recharger l\'application et effacer les données temporaires.\n'
|
||||
'Vos réglages et favoris sont sauvegardés sur le serveur.',
|
||||
style: TextStyle(color: Colors.white70),
|
||||
style: TextStyle(color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
@@ -499,7 +499,7 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
),
|
||||
FilledButton(
|
||||
style: FilledButton.styleFrom(
|
||||
backgroundColor: Colors.orange,
|
||||
backgroundColor: AppColors.warning,
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
@@ -524,8 +524,8 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
icon: const Icon(Icons.refresh, size: 16),
|
||||
label: const Text('Vider le Cache'),
|
||||
style: FilledButton.styleFrom(
|
||||
backgroundColor: Colors.orange.withOpacity(0.2),
|
||||
foregroundColor: Colors.orange,
|
||||
backgroundColor: AppColors.warning.withOpacity(0.2),
|
||||
foregroundColor: AppColors.warning,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -541,7 +541,7 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
icon: const Icon(Icons.logout),
|
||||
label: const Text('Déconnexion'),
|
||||
style: FilledButton.styleFrom(
|
||||
backgroundColor: Colors.red.shade700,
|
||||
backgroundColor: AppColors.error,
|
||||
padding: const EdgeInsets.symmetric(vertical: 16),
|
||||
),
|
||||
),
|
||||
@@ -559,9 +559,9 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
}) {
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withOpacity(0.05),
|
||||
color: AppColors.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: Colors.white.withOpacity(0.1)),
|
||||
border: Border.all(color: AppColors.outlineVariant),
|
||||
),
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
@@ -569,14 +569,14 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Icon(icon, size: 18, color: Colors.blueAccent),
|
||||
Icon(icon, size: 18, color: AppColors.primaryContainer),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
title,
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 13,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -587,9 +587,9 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
decoration: InputDecoration(
|
||||
hintText: 'Ex: FR,FRANCE,HD,SPORT',
|
||||
hintStyle:
|
||||
GoogleFonts.roboto(fontSize: 12, color: Colors.white30),
|
||||
GoogleFonts.inter(fontSize: 12, color: AppColors.outline),
|
||||
filled: true,
|
||||
fillColor: Colors.black26,
|
||||
fillColor: AppColors.surfaceContainerHigh,
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
borderSide: BorderSide.none,
|
||||
@@ -604,7 +604,7 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
icon: const Icon(
|
||||
Icons.clear,
|
||||
size: 16,
|
||||
color: Colors.white54,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
),
|
||||
onPressed: onClear,
|
||||
padding: EdgeInsets.zero,
|
||||
@@ -612,7 +612,7 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
)
|
||||
: null,
|
||||
),
|
||||
style: GoogleFonts.roboto(fontSize: 12, color: Colors.white),
|
||||
style: GoogleFonts.inter(fontSize: 12, color: AppColors.onSurface),
|
||||
onChanged: onChanged,
|
||||
),
|
||||
if (keywords.isNotEmpty) ...[
|
||||
@@ -625,15 +625,15 @@ class _SettingsTabState extends ConsumerState<SettingsTab>
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.blueAccent.withOpacity(0.2),
|
||||
color: AppColors.primaryContainer.withOpacity(0.2),
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
border:
|
||||
Border.all(color: Colors.blueAccent.withOpacity(0.5)),
|
||||
Border.all(color: AppColors.primaryContainer.withOpacity(0.5)),
|
||||
),
|
||||
child: Text(
|
||||
keyword,
|
||||
style:
|
||||
GoogleFonts.roboto(fontSize: 11, color: Colors.white),
|
||||
GoogleFonts.inter(fontSize: 11, color: AppColors.onSurface),
|
||||
),
|
||||
);
|
||||
}).toList(),
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import '../../../core/theme/app_colors.dart';
|
||||
import '../providers/settings_provider.dart';
|
||||
|
||||
/// Streaming settings tab for Live TV configuration
|
||||
@@ -18,18 +19,18 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
// Header
|
||||
Text(
|
||||
'Paramètres Streaming Live TV',
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
'Ces paramètres s\'appliquent uniquement aux flux TV en direct.',
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 12,
|
||||
color: Colors.white54,
|
||||
color: AppColors.onSurfaceVariant,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
@@ -104,11 +105,11 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
SwitchListTile(
|
||||
title: Text(
|
||||
'Reconnexion automatique',
|
||||
style: GoogleFonts.roboto(fontSize: 14, color: Colors.white),
|
||||
style: GoogleFonts.inter(fontSize: 14, color: AppColors.onSurface),
|
||||
),
|
||||
subtitle: Text(
|
||||
'Se reconnecter en cas de coupure',
|
||||
style: GoogleFonts.roboto(fontSize: 12, color: Colors.white54),
|
||||
style: GoogleFonts.inter(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
value: settings.autoReconnect,
|
||||
activeThumbColor: Colors.blueAccent,
|
||||
@@ -140,11 +141,11 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
SwitchListTile(
|
||||
title: Text(
|
||||
'Préférer lecture directe',
|
||||
style: GoogleFonts.roboto(fontSize: 14, color: Colors.white),
|
||||
style: GoogleFonts.inter(fontSize: 14, color: AppColors.onSurface),
|
||||
),
|
||||
subtitle: Text(
|
||||
'Utiliser le flux original si compatible',
|
||||
style: GoogleFonts.roboto(fontSize: 12, color: Colors.white54),
|
||||
style: GoogleFonts.inter(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
value: settings.preferDirectPlay,
|
||||
activeThumbColor: Colors.blueAccent,
|
||||
@@ -185,11 +186,11 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
SwitchListTile(
|
||||
title: Text(
|
||||
'Accélération NVIDIA GPU',
|
||||
style: GoogleFonts.roboto(fontSize: 14, color: Colors.white),
|
||||
style: GoogleFonts.inter(fontSize: 14, color: AppColors.onSurface),
|
||||
),
|
||||
subtitle: Text(
|
||||
'Utiliser NVENC/NVDEC pour le transcodage (requiert GPU NVIDIA)',
|
||||
style: GoogleFonts.roboto(fontSize: 12, color: Colors.white54),
|
||||
style: GoogleFonts.inter(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
value: settings.enableNvidiaGpu,
|
||||
activeThumbColor: Colors.green,
|
||||
@@ -214,7 +215,7 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
Expanded(
|
||||
child: Text(
|
||||
'Les changements prennent effet immédiatement pour les nouveaux flux.',
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 12,
|
||||
color: Colors.blue.shade700,
|
||||
),
|
||||
@@ -250,10 +251,10 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
title,
|
||||
style: GoogleFonts.roboto(
|
||||
style: GoogleFonts.inter(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: Colors.white,
|
||||
color: AppColors.onSurface,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -277,11 +278,11 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
return ListTile(
|
||||
title: Text(
|
||||
title,
|
||||
style: GoogleFonts.roboto(fontSize: 14, color: Colors.white),
|
||||
style: GoogleFonts.inter(fontSize: 14, color: AppColors.onSurface),
|
||||
),
|
||||
subtitle: Text(
|
||||
subtitle,
|
||||
style: GoogleFonts.roboto(fontSize: 12, color: Colors.white54),
|
||||
style: GoogleFonts.inter(fontSize: 12, color: AppColors.onSurfaceVariant),
|
||||
),
|
||||
trailing: DropdownButton<T>(
|
||||
value: value,
|
||||
@@ -292,13 +293,13 @@ class StreamingSettingsTab extends ConsumerWidget {
|
||||
value: item,
|
||||
child: Text(
|
||||
labelBuilder(item),
|
||||
style: GoogleFonts.roboto(fontSize: 13, color: Colors.white),
|
||||
style: GoogleFonts.inter(fontSize: 13, color: AppColors.onSurface),
|
||||
),
|
||||
);
|
||||
}).toList(),
|
||||
onChanged: onChanged,
|
||||
style: GoogleFonts.roboto(color: Colors.white),
|
||||
iconEnabledColor: Colors.white70,
|
||||
style: GoogleFonts.inter(color: AppColors.onSurface),
|
||||
iconEnabledColor: AppColors.onSurfaceVariant,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user