kopia lustrzana https://gitlab.com/mysocialportal/relatica
Tweak image view to limit size of the text field
rodzic
76a2106822
commit
731dd64297
|
@ -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),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
Ładowanie…
Reference in New Issue