Tweak image view to limit size of the text field

This commit is contained in:
Hank Grabowski 2022-12-30 11:36:27 -05:00
parent 76a2106822
commit 731dd64297

View file

@ -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),
), ),
], ],
), ),