Limit file name and type display to a single line for better layout consistency
This commit is contained in:
@@ -1268,6 +1268,7 @@ class _FileExplorerState extends State<FileExplorer>
|
||||
padding: const EdgeInsets.only(bottom: 2, right: 6),
|
||||
child: Text(
|
||||
p.extension(file.name).toUpperCase(),
|
||||
maxLines: 1,
|
||||
style: const TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: 6.25,
|
||||
@@ -1289,6 +1290,7 @@ class _FileExplorerState extends State<FileExplorer>
|
||||
file.type == FileType.folder
|
||||
? 'Folder'
|
||||
: '${_getFileTypeLabel(file)} - ${_formatFileSize(file.size)}',
|
||||
maxLines: 1,
|
||||
style: const TextStyle(color: AppTheme.secondaryText),
|
||||
),
|
||||
trailing: Row(
|
||||
|
||||
Reference in New Issue
Block a user