Remove duplicate file info header in public file viewer

This commit is contained in:
Leon Bösche
2026-01-25 16:32:32 +01:00
parent 6121acdc4b
commit 1c1606d61d

View File

@@ -382,35 +382,6 @@ class _PublicFileViewerState extends State<PublicFileViewer> {
: _fileData != null
? Column(
children: [
// File info bar
Container(
padding: const EdgeInsets.symmetric(
horizontal: 16,
vertical: 8,
),
color: AppTheme.primaryBackground.withValues(alpha: 0.8),
child: Row(
children: [
Expanded(
child: Text(
_fileData!['fileName'] ?? 'Unknown file',
style: TextStyle(
color: AppTheme.primaryText,
fontSize: 16,
fontWeight: FontWeight.w500,
),
),
),
Text(
'${(_fileData!['fileSize'] ?? 0) ~/ 1024} KB',
style: TextStyle(
color: AppTheme.secondaryText,
fontSize: 14,
),
),
],
),
),
// File content
Expanded(child: _buildFilePreview()),
// Video controls (if video)