mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 13:33: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,
|
||||
children: [
|
||||
Expanded(
|
||||
flex: 9,
|
||||
child: InteractiveViewer(
|
||||
clipBehavior: Clip.none,
|
||||
constrained: true,
|
||||
|
@ -72,13 +73,18 @@ class ImageViewerScreen extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
if (attachment.description.isNotEmpty)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 8.0,
|
||||
right: 8.0,
|
||||
bottom: 8.0,
|
||||
Expanded(
|
||||
flex: 1,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
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