fix: Added correct paddings for error
This commit is contained in:
@@ -381,12 +381,14 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAlias,
|
||||||
elevation: 0.0,
|
elevation: 0.0,
|
||||||
margin: EdgeInsets.symmetric(
|
margin: EdgeInsets.symmetric(
|
||||||
horizontal:
|
horizontal: (isFailedState
|
||||||
widget.showUserAvatar ==
|
? 15.0
|
||||||
|
: 0.0) +
|
||||||
|
(widget.showUserAvatar ==
|
||||||
DisplayWidget
|
DisplayWidget
|
||||||
.gone
|
.gone
|
||||||
? 0
|
? 0
|
||||||
: 4.0,
|
: 4.0),
|
||||||
),
|
),
|
||||||
shape: widget.shape ??
|
shape: widget.shape ??
|
||||||
RoundedRectangleBorder(
|
RoundedRectangleBorder(
|
||||||
@@ -453,8 +455,8 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
),
|
),
|
||||||
if (isFailedState)
|
if (isFailedState)
|
||||||
Positioned(
|
Positioned(
|
||||||
left: widget.reverse ? -9 : null,
|
left: widget.reverse ? 0 : null,
|
||||||
right: widget.reverse ? null : -9,
|
right: widget.reverse ? null : 0,
|
||||||
bottom: showBottomRow ? 18 : -2,
|
bottom: showBottomRow ? 18 : -2,
|
||||||
child: StreamSvgIcon.error(size: 20),
|
child: StreamSvgIcon.error(size: 20),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user