boton temporal para actualizar duraciones, fix de duracion en y peso de el archvio
This commit is contained in:
@@ -11,6 +11,7 @@ import 'package:energy_media/pages/videos/widgets/video_player_dialog.dart';
|
||||
import 'package:energy_media/pages/videos/widgets/gestor_videos_widgets/empty_state_widget.dart';
|
||||
import 'package:energy_media/pages/videos/widgets/gestor_videos_widgets/edit_video_dialog.dart';
|
||||
import 'package:energy_media/pages/videos/widgets/gestor_videos_widgets/delete_video_dialog.dart';
|
||||
|
||||
import 'package:energy_media/pages/videos/widgets/video_thumbnail_widget.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
|
||||
@@ -437,7 +438,7 @@ class _GestorVideosPageState extends State<GestorVideosPage> {
|
||||
title: 'Descripción',
|
||||
field: 'file_description',
|
||||
type: PlutoColumnType.text(),
|
||||
width: 425,
|
||||
width: 400,
|
||||
enableEditingMode: false,
|
||||
renderer: (rendererContext) {
|
||||
final description = rendererContext.cell.value?.toString() ?? '';
|
||||
@@ -523,14 +524,105 @@ class _GestorVideosPageState extends State<GestorVideosPage> {
|
||||
title: 'Duración',
|
||||
field: 'duration',
|
||||
type: PlutoColumnType.text(),
|
||||
width: 180,
|
||||
width: 120,
|
||||
enableEditingMode: false,
|
||||
textAlign: PlutoColumnTextAlign.center,
|
||||
renderer: (rendererContext) {
|
||||
final duration = rendererContext.cell.value?.toString() ?? '-';
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 8),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
|
||||
decoration: BoxDecoration(
|
||||
color: AppTheme.of(context).warning.withOpacity(0.15),
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
border: Border.all(
|
||||
color: AppTheme.of(context).warning.withOpacity(0.3),
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(
|
||||
Icons.access_time_rounded,
|
||||
size: 14,
|
||||
color: AppTheme.of(context).warning,
|
||||
),
|
||||
const Gap(6),
|
||||
Flexible(
|
||||
child: Text(
|
||||
duration,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Poppins',
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppTheme.of(context).warning,
|
||||
),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
PlutoColumn(
|
||||
title: 'Tamaño',
|
||||
field: 'file_size',
|
||||
type: PlutoColumnType.text(),
|
||||
width: 120,
|
||||
enableEditingMode: false,
|
||||
textAlign: PlutoColumnTextAlign.center,
|
||||
renderer: (rendererContext) {
|
||||
final fileSize = rendererContext.cell.value?.toString() ?? '-';
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 8),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
|
||||
decoration: BoxDecoration(
|
||||
color: AppTheme.of(context).info.withOpacity(0.15),
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
border: Border.all(
|
||||
color: AppTheme.of(context).info.withOpacity(0.3),
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(
|
||||
Icons.storage_rounded,
|
||||
size: 14,
|
||||
color: AppTheme.of(context).info,
|
||||
),
|
||||
const Gap(6),
|
||||
Flexible(
|
||||
child: Text(
|
||||
fileSize,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Poppins',
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppTheme.of(context).info,
|
||||
),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
PlutoColumn(
|
||||
title: 'Fecha de Creación',
|
||||
field: 'createdAt',
|
||||
type: PlutoColumnType.text(),
|
||||
width: 280,
|
||||
width: 240,
|
||||
enableEditingMode: false,
|
||||
renderer: (rendererContext) {
|
||||
final video =
|
||||
|
||||
Reference in New Issue
Block a user