mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 13:33:32 +00:00
Fix image description box scrolling only text not copy icon
This commit is contained in:
parent
0aa0f93af2
commit
55b8cdaf13
1 changed files with 19 additions and 18 deletions
|
@ -127,24 +127,25 @@ class _ImageViewerScreenState extends State<ImageViewerScreen> {
|
|||
|
||||
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),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue