fix gestor de contenido, wip reproductor y diseño

This commit is contained in:
Abraham
2026-01-12 16:36:47 -08:00
parent 1a1049b653
commit 854a0940ae
11 changed files with 159 additions and 222 deletions

View File

@@ -63,6 +63,9 @@ class _VideosLayoutState extends State<VideosLayout> {
}
Widget _buildHeader(bool isMobile) {
final isDark = AppTheme.themeMode == ThemeMode.dark;
final isLightBackground = !isDark;
return Container(
padding: EdgeInsets.all(isMobile ? 16 : 24),
decoration: BoxDecoration(
@@ -82,26 +85,15 @@ class _VideosLayoutState extends State<VideosLayout> {
color: AppTheme.of(context).primaryText,
onPressed: () => _scaffoldKey.currentState?.openDrawer(),
),
Container(
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
gradient: AppTheme.of(context).primaryGradient,
borderRadius: BorderRadius.circular(8),
),
child: const Icon(
Icons.energy_savings_leaf,
color: Color(0xFF0B0B0D),
size: 24,
),
),
const Gap(12),
Text(
'EnergyMedia',
style: AppTheme.of(context).title2.override(
fontFamily: 'Poppins',
color: AppTheme.of(context).primaryText,
fontWeight: FontWeight.bold,
),
// Logo de EnergyMedia
Image.asset(
isMobile
? 'assets/images/favicon.png'
: isLightBackground
? 'assets/images/logo_nh.png'
: 'assets/images/logo_nh_b.png',
height: isMobile ? 32 : 75,
fit: BoxFit.contain,
),
const Spacer(),
Text(
@@ -154,29 +146,13 @@ class _VideosLayoutState extends State<VideosLayout> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
padding: const EdgeInsets.all(12),
decoration: BoxDecoration(
color: Colors.white.withOpacity(0.2),
borderRadius: BorderRadius.circular(12),
),
child: const Icon(
Icons.energy_savings_leaf,
color: Color(0xFF0B0B0D),
size: 32,
),
// Logo de EnergyMedia
Image.asset(
'assets/images/logo_nh_b.png',
height: 50,
fit: BoxFit.contain,
),
const Gap(16),
Text(
'EnergyMedia',
style: AppTheme.of(context).title2.override(
fontFamily: 'Poppins',
color: const Color(0xFF0B0B0D),
fontWeight: FontWeight.bold,
fontSize: 24,
),
),
const Gap(4),
const Gap(12),
Text(
'Content Manager',
style: AppTheme.of(context).bodyText2.override(
@@ -436,28 +412,13 @@ class _VideosLayoutState extends State<VideosLayout> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
padding: const EdgeInsets.all(12),
decoration: BoxDecoration(
color: Colors.white.withOpacity(0.2),
borderRadius: BorderRadius.circular(12),
),
child: const Icon(
Icons.energy_savings_leaf,
color: Color(0xFF0B0B0D),
size: 32,
),
// Logo de EnergyMedia
Image.asset(
'assets/images/logo_nh.png',
height: 45,
fit: BoxFit.contain,
),
const Gap(12),
Text(
'EnergyMedia',
style: AppTheme.of(context).title2.override(
fontFamily: 'Poppins',
color: const Color(0xFF0B0B0D),
fontWeight: FontWeight.bold,
),
),
const Gap(4),
Text(
'Content Manager',
style: AppTheme.of(context).bodyText2.override(