Remove duplicate file info header in public file viewer
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user