add cliprrect to file section of messageinput
This commit is contained in:
+25
-21
@@ -1247,29 +1247,33 @@ 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: FileAttachment(
|
child: ClipRRect(
|
||||||
attachment: e.attachment,
|
borderRadius: BorderRadius.circular(10),
|
||||||
size: Size(
|
clipBehavior: Clip.antiAlias,
|
||||||
MediaQuery.of(context).size.width * 0.55,
|
child: FileAttachment(
|
||||||
MediaQuery.of(context).size.height * 0.3,
|
attachment: e.attachment,
|
||||||
),
|
size: Size(
|
||||||
trailing: Padding(
|
MediaQuery.of(context).size.width * 0.55,
|
||||||
padding: const EdgeInsets.all(8.0),
|
MediaQuery.of(context).size.height * 0.3,
|
||||||
child: InkWell(
|
),
|
||||||
child: CircleAvatar(
|
trailing: Padding(
|
||||||
backgroundColor:
|
padding: const EdgeInsets.all(8.0),
|
||||||
Colors.black.withOpacity(0.2),
|
child: InkWell(
|
||||||
maxRadius: 12.0,
|
child: CircleAvatar(
|
||||||
child: StreamSvgIcon.close(
|
backgroundColor:
|
||||||
color: Colors.white,
|
Colors.black.withOpacity(0.2),
|
||||||
|
maxRadius: 12.0,
|
||||||
|
child: StreamSvgIcon.close(
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
|
onTap: () {
|
||||||
|
setState(() {
|
||||||
|
_attachments.remove(e);
|
||||||
|
});
|
||||||
|
},
|
||||||
),
|
),
|
||||||
onTap: () {
|
|
||||||
setState(() {
|
|
||||||
_attachments.remove(e);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user