Fix image description box scrolling only text not copy icon

This commit is contained in:
Hank Grabowski 2023-01-30 11:17:43 -05:00
parent 0aa0f93af2
commit 55b8cdaf13

View file

@ -127,13 +127,15 @@ class _ImageViewerScreenState extends State<ImageViewerScreen> {
Widget buildTextArea(MediaAttachment attachment) { Widget buildTextArea(MediaAttachment attachment) {
return Expanded( return Expanded(
child: SingleChildScrollView(
child: Padding( child: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Expanded(child: Text(attachment.description)), Expanded(
child: SingleChildScrollView(
child: Text(attachment.description),
)),
IconButton( IconButton(
onPressed: () async { onPressed: () async {
await copyToClipboard( await copyToClipboard(
@ -146,7 +148,6 @@ class _ImageViewerScreenState extends State<ImageViewerScreen> {
], ],
), ),
), ),
),
); );
} }
} }