mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
Onglet Enregistrements : - TabBar à 3 vues : Guide TV (programmer depuis l'EPG), liste des enregistrements, Season Passes. _EpgGuideView et _SeasonPassesView (~800 lignes fonctionnelles) n'étaient plus instanciés depuis une refonte — programmer depuis le guide et les enregistrements récurrents étaient devenus inaccessibles - Confirmation avant suppression d'un enregistrement (la corbeille supprimait immédiatement, sans retour ni annulation) - Erreur de chargement avec bouton Réessayer Favoris : - Bouton cœur sur les tuiles chaînes desktop (overlay) et mobile : toggleFavorite() n'était appelé nulle part, le filtre « Favoris » affichait toujours une liste vide Reprise de lecture : - Films et épisodes lisent playbackPositionsProvider et passent startTime au player : les positions étaient écrites mais jamais relues, tout repartait de zéro - Plus de sauvegarde de position en live (une entrée bidon par chaîne zappée) Mobile : - 5e onglet REC réutilisant RecordingsTab - IndexedStack au lieu du switch : les onglets conservent scroll et catalogues chargés (aligné sur le dashboard desktop) Dashboard : - Menu profil sur l'avatar de la sidebar (nom d'utilisateur + déconnexion) : le bouton était mort, aucune déconnexion possible depuis le dashboard desktop - Erreur de chargement des chaînes avec bouton Réessayer Validé : flutter analyze (202 issues, identique à la baseline main, 0 erreur/warning), flutter test (OK), flutter build web --release (OK). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015oEu9QayWsw7hCKhenxgVa
97 lines
2.9 KiB
Dart
97 lines
2.9 KiB
Dart
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';
|
|
|
|
class MobileScaffold extends ConsumerWidget {
|
|
final Widget child;
|
|
final int currentIndex;
|
|
final Function(int) onIndexChanged;
|
|
|
|
const MobileScaffold({
|
|
super.key,
|
|
required this.child,
|
|
required this.currentIndex,
|
|
required this.onIndexChanged,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
return Scaffold(
|
|
extendBody: true,
|
|
backgroundColor: AppColors.background,
|
|
body: Stack(
|
|
fit: StackFit.expand,
|
|
children: [
|
|
// Global Background
|
|
Container(
|
|
decoration: const BoxDecoration(
|
|
gradient: LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: [
|
|
AppColors.surfaceVariant,
|
|
AppColors.background,
|
|
],
|
|
),
|
|
),
|
|
),
|
|
|
|
// Content
|
|
child,
|
|
],
|
|
),
|
|
bottomNavigationBar: Container(
|
|
decoration: BoxDecoration(
|
|
color: AppColors.surface,
|
|
border: Border(
|
|
top: BorderSide(
|
|
color: AppColors.border,
|
|
width: 0.5,
|
|
),
|
|
),
|
|
),
|
|
child: BottomNavigationBar(
|
|
currentIndex: currentIndex,
|
|
onTap: onIndexChanged,
|
|
backgroundColor: Colors.transparent,
|
|
type: BottomNavigationBarType.fixed,
|
|
elevation: 0,
|
|
selectedItemColor: AppColors.primary,
|
|
unselectedItemColor: AppColors.textSecondary,
|
|
selectedLabelStyle:
|
|
GoogleFonts.karla(fontWeight: FontWeight.w600, fontSize: 11),
|
|
unselectedLabelStyle:
|
|
GoogleFonts.karla(fontWeight: FontWeight.w500, fontSize: 11),
|
|
items: const [
|
|
BottomNavigationBarItem(
|
|
icon: Icon(Icons.live_tv_rounded),
|
|
label: 'Live',
|
|
),
|
|
BottomNavigationBarItem(
|
|
icon: Icon(Icons.movie_outlined),
|
|
activeIcon: Icon(Icons.movie_rounded),
|
|
label: 'Movies',
|
|
),
|
|
BottomNavigationBarItem(
|
|
icon: Icon(Icons.video_library_outlined),
|
|
activeIcon: Icon(Icons.video_library_rounded),
|
|
label: 'Series',
|
|
),
|
|
BottomNavigationBarItem(
|
|
icon: Icon(Icons.videocam_outlined),
|
|
activeIcon: Icon(Icons.videocam_rounded),
|
|
label: 'REC',
|
|
),
|
|
BottomNavigationBarItem(
|
|
icon: Icon(Icons.settings_outlined),
|
|
activeIcon: Icon(Icons.settings_rounded),
|
|
label: 'Settings',
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|