Skip to content

An open-source cross-platform alternative to AirDrop

Fix issue 1382: File info dialog overflow (#1390)

Caesarovichf6c0bf161193
diff --git a/app/lib/widget/dialogs/file_info_dialog.dart b/app/lib/widget/dialogs/file_info_dialog.dart
index 1d9a9512..d4919b39 100644
--- a/app/lib/widget/dialogs/file_info_dialog.dart
+++ b/app/lib/widget/dialogs/file_info_dialog.dart
@@ -13,49 +13,52 @@ class FileInfoDialog extends StatelessWidget {
Widget build(BuildContext context) {
return AlertDialog(
title: Text(t.dialogs.fileInfo.title),
- content: Table(
- columnWidths: const {
- 0: IntrinsicColumnWidth(),
- 1: IntrinsicColumnWidth(),
- 2: IntrinsicColumnWidth(),
- },
- children: [
- TableRow(
- children: [
- Text(t.dialogs.fileInfo.fileName, maxLines: 1),
- const SizedBox(width: 10),
- SelectableText(entry.fileName),
- ],
- ),
- TableRow(
- children: [
- Text(t.dialogs.fileInfo.path),
- const SizedBox(width: 10),
- SelectableText(entry.savedToGallery ? t.progressPage.savedToGallery : (entry.path ?? '')),
- ],
- ),
- TableRow(
- children: [
- Text(t.dialogs.fileInfo.size),
- const SizedBox(width: 10),
- SelectableText(entry.fileSize.asReadableFileSize),
- ],
- ),
- TableRow(
- children: [
- Text(t.dialogs.fileInfo.sender),
- const SizedBox(width: 10),
- SelectableText(entry.senderAlias),
- ],
- ),
- TableRow(
- children: [
- Text(t.dialogs.fileInfo.time),
- const SizedBox(width: 10),
- SelectableText(entry.timestampString),
- ],
- ),
- ],
+ content: SingleChildScrollView(
+ scrollDirection: Axis.horizontal,
+ child: Table(
+ columnWidths: const {
+ 0: IntrinsicColumnWidth(),
+ 1: IntrinsicColumnWidth(),
+ 2: IntrinsicColumnWidth(),
+ },
+ children: [
+ TableRow(
+ children: [
+ Text(t.dialogs.fileInfo.fileName, maxLines: 1),
+ const SizedBox(width: 10),
+ SelectableText(entry.fileName),
+ ],
+ ),
+ TableRow(
+ children: [
+ Text(t.dialogs.fileInfo.path),
+ const SizedBox(width: 10),
+ SelectableText(entry.savedToGallery ? t.progressPage.savedToGallery : (entry.path ?? '')),
+ ],
+ ),
+ TableRow(
+ children: [
+ Text(t.dialogs.fileInfo.size),
+ const SizedBox(width: 10),
+ SelectableText(entry.fileSize.asReadableFileSize),
+ ],
+ ),
+ TableRow(
+ children: [
+ Text(t.dialogs.fileInfo.sender),
+ const SizedBox(width: 10),
+ SelectableText(entry.senderAlias),
+ ],
+ ),
+ TableRow(
+ children: [
+ Text(t.dialogs.fileInfo.time),
+ const SizedBox(width: 10),
+ SelectableText(entry.timestampString),
+ ],
+ ),
+ ],
+ ),
),
actions: [
TextButton(