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),
|
padding: const EdgeInsets.only(bottom: 2, right: 6),
|
||||||
child: Text(
|
child: Text(
|
||||||
p.extension(file.name).toUpperCase(),
|
p.extension(file.name).toUpperCase(),
|
||||||
|
maxLines: 1,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
fontSize: 6.25,
|
fontSize: 6.25,
|
||||||
@@ -1289,6 +1290,7 @@ class _FileExplorerState extends State<FileExplorer>
|
|||||||
file.type == FileType.folder
|
file.type == FileType.folder
|
||||||
? 'Folder'
|
? 'Folder'
|
||||||
: '${_getFileTypeLabel(file)} - ${_formatFileSize(file.size)}',
|
: '${_getFileTypeLabel(file)} - ${_formatFileSize(file.size)}',
|
||||||
|
maxLines: 1,
|
||||||
style: const TextStyle(color: AppTheme.secondaryText),
|
style: const TextStyle(color: AppTheme.secondaryText),
|
||||||
),
|
),
|
||||||
trailing: Row(
|
trailing: Row(
|
||||||
|
|||||||
Reference in New Issue
Block a user