fix: attachments ui
This commit is contained in:
@@ -618,12 +618,14 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
return _attachments.isEmpty
|
return _attachments.isEmpty
|
||||||
? Container()
|
? Container()
|
||||||
: LimitedBox(
|
: LimitedBox(
|
||||||
maxHeight: 80.0,
|
maxHeight: 76.0,
|
||||||
child: ListView(
|
child: ListView(
|
||||||
scrollDirection: Axis.horizontal,
|
scrollDirection: Axis.horizontal,
|
||||||
children: _attachments
|
children: _attachments
|
||||||
.map(
|
.map(
|
||||||
(attachment) => Padding(
|
(attachment) => AspectRatio(
|
||||||
|
aspectRatio: 1.0,
|
||||||
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(10),
|
borderRadius: BorderRadius.circular(10),
|
||||||
@@ -649,6 +651,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
.toList(),
|
.toList(),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user