Tweak image view to limit size of the text field

codemagic-setup
Hank Grabowski 2022-12-30 11:36:27 -05:00
rodzic 76a2106822
commit 731dd64297
1 zmienionych plików z 12 dodań i 6 usunięć

Wyświetl plik

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