video thumbnails extractor añadido
This commit is contained in:
@@ -11,6 +11,7 @@ import 'package:nethive_neo/pages/videos/widgets/video_player_dialog.dart';
|
||||
import 'package:nethive_neo/pages/videos/widgets/gestor_videos_widgets/empty_state_widget.dart';
|
||||
import 'package:nethive_neo/pages/videos/widgets/gestor_videos_widgets/edit_video_dialog.dart';
|
||||
import 'package:nethive_neo/pages/videos/widgets/gestor_videos_widgets/delete_video_dialog.dart';
|
||||
import 'package:nethive_neo/pages/videos/widgets/video_thumbnail_widget.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
|
||||
class GestorVideosPage extends StatefulWidget {
|
||||
@@ -360,7 +361,12 @@ class _GestorVideosPageState extends State<GestorVideosPage> {
|
||||
errorBuilder: (context, error, stackTrace) =>
|
||||
_buildThumbnailPlaceholder(),
|
||||
)
|
||||
: _buildThumbnailPlaceholder(),
|
||||
: (video.fileUrl != null && video.fileUrl!.isNotEmpty)
|
||||
? VideoThumbnailWidget(
|
||||
videoUrl: video.fileUrl!,
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
: _buildThumbnailPlaceholder(),
|
||||
// Overlay con icono de play
|
||||
Positioned.fill(
|
||||
child: Container(
|
||||
@@ -782,21 +788,26 @@ class _GestorVideosPageState extends State<GestorVideosPage> {
|
||||
),
|
||||
),
|
||||
)
|
||||
: Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
colors: [
|
||||
AppTheme.of(context).tertiaryBackground,
|
||||
AppTheme.of(context).primaryBackground,
|
||||
],
|
||||
: (video.fileUrl != null && video.fileUrl!.isNotEmpty)
|
||||
? VideoThumbnailWidget(
|
||||
videoUrl: video.fileUrl!,
|
||||
fit: BoxFit.cover,
|
||||
)
|
||||
: Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
colors: [
|
||||
AppTheme.of(context).tertiaryBackground,
|
||||
AppTheme.of(context).primaryBackground,
|
||||
],
|
||||
),
|
||||
),
|
||||
child: Icon(
|
||||
Icons.video_library_rounded,
|
||||
size: 80,
|
||||
color: AppTheme.of(context).tertiaryText,
|
||||
),
|
||||
),
|
||||
),
|
||||
child: Icon(
|
||||
Icons.video_library_rounded,
|
||||
size: 80,
|
||||
color: AppTheme.of(context).tertiaryText,
|
||||
),
|
||||
),
|
||||
),
|
||||
// Overlay con gradiente
|
||||
Positioned.fill(
|
||||
|
||||
Reference in New Issue
Block a user