mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 15:53:32 +00:00
Tweak image view to limit size of the text field
This commit is contained in:
parent
76a2106822
commit
731dd64297
1 changed files with 12 additions and 6 deletions
|
@ -62,6 +62,7 @@ class ImageViewerScreen extends StatelessWidget {
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
flex: 9,
|
||||||
child: InteractiveViewer(
|
child: InteractiveViewer(
|
||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
constrained: true,
|
constrained: true,
|
||||||
|
@ -72,13 +73,18 @@ class ImageViewerScreen extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (attachment.description.isNotEmpty)
|
if (attachment.description.isNotEmpty)
|
||||||
Padding(
|
Expanded(
|
||||||
padding: const EdgeInsets.only(
|
flex: 1,
|
||||||
left: 8.0,
|
child: Padding(
|
||||||
right: 8.0,
|
padding: const EdgeInsets.only(
|
||||||
bottom: 8.0,
|
left: 8.0,
|
||||||
|
right: 8.0,
|
||||||
|
bottom: 8.0,
|
||||||
|
),
|
||||||
|
child: SingleChildScrollView(
|
||||||
|
child: Text(attachment.description),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
child: Text(attachment.description),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue