From 6efdadd6fdd419adf5fdc2269b364cf2b5ed4bf4 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 1 Apr 2026 20:45:48 +0200 Subject: [PATCH] fix: simplify RecordingsTab to fix null check operator error Co-Authored-By: Claude Haiku 4.5 --- .claude/settings.local.json | 6 ++- lib/features/iptv/widgets/recordings_tab.dart | 52 +++++++++---------- 2 files changed, 30 insertions(+), 28 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 4937923..7f14cbd 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -2,7 +2,11 @@ "permissions": { "allow": [ "Bash(dart analyze:*)", - "Bash(git checkout:*)" + "Bash(git checkout:*)", + "Bash(git commit -m 'fix: restore RecordingsTab to working version without tab complexity:*)", + "Bash(git push:*)", + "Bash(git add:*)", + "Bash(git commit -m 'fix: simplify RecordingsTab to fix null check operator error:*)" ] } } diff --git a/lib/features/iptv/widgets/recordings_tab.dart b/lib/features/iptv/widgets/recordings_tab.dart index 10ba24c..ca96537 100644 --- a/lib/features/iptv/widgets/recordings_tab.dart +++ b/lib/features/iptv/widgets/recordings_tab.dart @@ -24,35 +24,33 @@ class RecordingsTab extends StatefulWidget { class _RecordingsTabState extends State { @override Widget build(BuildContext context) { - return Column( - children: [ - // Header - Container( - padding: const EdgeInsets.fromLTRB(24, 24, 24, 16), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - children: [ - const Icon(Icons.videocam, color: Colors.white, size: 28), - const SizedBox(width: 12), - Text( - 'Enregistrements', - style: GoogleFonts.outfit( - fontSize: 26, - fontWeight: FontWeight.bold, - color: Colors.white, - ), + return Container( + color: Colors.black, + child: Column( + children: [ + Container( + padding: const EdgeInsets.fromLTRB(24, 24, 24, 16), + color: Colors.grey[900], + child: const Row( + children: [ + Icon(Icons.videocam, color: Colors.white, size: 28), + SizedBox(width: 12), + Text( + 'Enregistrements', + style: TextStyle( + fontSize: 26, + fontWeight: FontWeight.bold, + color: Colors.white, ), - ], - ), - ], + ), + ], + ), ), - ), - Expanded( - child: _RecordingsListView(playlist: widget.playlist), - ), - ], + Expanded( + child: _RecordingsListView(playlist: widget.playlist), + ), + ], + ), ); } }