diff --git a/lib/screens/image_viewer_screen.dart b/lib/screens/image_viewer_screen.dart index 3f60038..c649d44 100644 --- a/lib/screens/image_viewer_screen.dart +++ b/lib/screens/image_viewer_screen.dart @@ -127,24 +127,25 @@ class _ImageViewerScreenState extends State { Widget buildTextArea(MediaAttachment attachment) { return Expanded( - child: SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.all(8.0), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Expanded(child: Text(attachment.description)), - IconButton( - onPressed: () async { - await copyToClipboard( - context: context, - text: attachment.description, - message: 'Image description copied to clipboard'); - }, - icon: Icon(Icons.copy), - ), - ], - ), + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Expanded( + child: SingleChildScrollView( + child: Text(attachment.description), + )), + IconButton( + onPressed: () async { + await copyToClipboard( + context: context, + text: attachment.description, + message: 'Image description copied to clipboard'); + }, + icon: Icon(Icons.copy), + ), + ], ), ), );