fix: attachments ui
This commit is contained in:
+21
-21
@@ -255,7 +255,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
maxHeight: widget.maxHeight,
|
maxHeight: widget.maxHeight,
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(16.0),
|
borderRadius: BorderRadius.circular(32.0),
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
)),
|
)),
|
||||||
@@ -623,32 +623,32 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
scrollDirection: Axis.horizontal,
|
scrollDirection: Axis.horizontal,
|
||||||
children: _attachments
|
children: _attachments
|
||||||
.map(
|
.map(
|
||||||
(attachment) => AspectRatio(
|
(attachment) => Padding(
|
||||||
aspectRatio: 1.0,
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: Padding(
|
child: ClipRRect(
|
||||||
padding: const EdgeInsets.all(8.0),
|
borderRadius: BorderRadius.circular(10),
|
||||||
child: ClipRRect(
|
child: Stack(
|
||||||
borderRadius: BorderRadius.circular(10),
|
children: <Widget>[
|
||||||
child: Stack(
|
AspectRatio(
|
||||||
children: <Widget>[
|
aspectRatio: 1.0,
|
||||||
Container(
|
child: Container(
|
||||||
height: 50,
|
height: 50,
|
||||||
width: 50,
|
width: 50,
|
||||||
child: _buildAttachment(attachment),
|
child: _buildAttachment(attachment),
|
||||||
),
|
),
|
||||||
_buildRemoveButton(attachment),
|
),
|
||||||
attachment.uploaded
|
_buildRemoveButton(attachment),
|
||||||
? SizedBox()
|
attachment.uploaded
|
||||||
: Positioned.fill(
|
? SizedBox()
|
||||||
child: Center(
|
: Positioned.fill(
|
||||||
child: Padding(
|
child: Center(
|
||||||
padding: const EdgeInsets.all(16.0),
|
child: Padding(
|
||||||
child: CircularProgressIndicator(),
|
padding: const EdgeInsets.all(16.0),
|
||||||
),
|
child: CircularProgressIndicator(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user