add cliprrect to file section of messageinput

This commit is contained in:
Salvatore Giordano
2020-12-03 11:39:38 +01:00
parent dffad3d6bc
commit 38687f59ef
+5 -1
View File
@@ -1247,7 +1247,10 @@ class MessageInputState extends State<MessageInput> {
.map( .map(
(e) => Padding( (e) => Padding(
padding: padding:
const EdgeInsets.symmetric(horizontal: 4.0), const EdgeInsets.symmetric(horizontal: 8.0),
child: ClipRRect(
borderRadius: BorderRadius.circular(10),
clipBehavior: Clip.antiAlias,
child: FileAttachment( child: FileAttachment(
attachment: e.attachment, attachment: e.attachment,
size: Size( size: Size(
@@ -1274,6 +1277,7 @@ class MessageInputState extends State<MessageInput> {
), ),
), ),
), ),
),
) )
.toList(), .toList(),
), ),