fix: Timestamp alignment
This commit is contained in:
@@ -490,7 +490,12 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
? AlignmentDirectional.bottomEnd
|
? AlignmentDirectional.bottomEnd
|
||||||
: AlignmentDirectional.bottomStart,
|
: AlignmentDirectional.bottomStart,
|
||||||
children: [
|
children: [
|
||||||
Column(
|
Padding(
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
bottom:
|
||||||
|
isPinned && widget.showPinHighlight ? 8.0 : 0.0,
|
||||||
|
),
|
||||||
|
child: Column(
|
||||||
crossAxisAlignment: widget.reverse
|
crossAxisAlignment: widget.reverse
|
||||||
? CrossAxisAlignment.end
|
? CrossAxisAlignment.end
|
||||||
: CrossAxisAlignment.start,
|
: CrossAxisAlignment.start,
|
||||||
@@ -504,7 +509,8 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
if (widget.showUserAvatar == DisplayWidget.show &&
|
if (widget.showUserAvatar ==
|
||||||
|
DisplayWidget.show &&
|
||||||
widget.message.user != null) ...[
|
widget.message.user != null) ...[
|
||||||
_buildUserAvatar(),
|
_buildUserAvatar(),
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
@@ -548,14 +554,14 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
// ignore: lines_longer_than_80_chars
|
// ignore: lines_longer_than_80_chars
|
||||||
widget.showUserAvatar ==
|
widget.showUserAvatar ==
|
||||||
// ignore: lines_longer_than_80_chars
|
// ignore: lines_longer_than_80_chars
|
||||||
DisplayWidget
|
DisplayWidget.gone
|
||||||
.gone
|
|
||||||
? 0
|
? 0
|
||||||
: 4.0),
|
: 4.0),
|
||||||
child: DeletedMessage(
|
child: DeletedMessage(
|
||||||
borderRadiusGeometry: widget
|
borderRadiusGeometry: widget
|
||||||
.borderRadiusGeometry,
|
.borderRadiusGeometry,
|
||||||
borderSide: widget.borderSide,
|
borderSide:
|
||||||
|
widget.borderSide,
|
||||||
shape: widget.shape,
|
shape: widget.shape,
|
||||||
messageTheme:
|
messageTheme:
|
||||||
widget.messageTheme,
|
widget.messageTheme,
|
||||||
@@ -570,13 +576,15 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
: 0.0) +
|
: 0.0) +
|
||||||
// ignore: lines_longer_than_80_chars
|
// ignore: lines_longer_than_80_chars
|
||||||
(widget.showUserAvatar ==
|
(widget.showUserAvatar ==
|
||||||
DisplayWidget.gone
|
DisplayWidget
|
||||||
|
.gone
|
||||||
? 0
|
? 0
|
||||||
: 4.0),
|
: 4.0),
|
||||||
),
|
),
|
||||||
shape: widget.shape ??
|
shape: widget.shape ??
|
||||||
RoundedRectangleBorder(
|
RoundedRectangleBorder(
|
||||||
side: widget.borderSide ??
|
side: widget
|
||||||
|
.borderSide ??
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: widget
|
color: widget
|
||||||
// ignore: lines_longer_than_80_chars
|
// ignore: lines_longer_than_80_chars
|
||||||
@@ -633,9 +641,14 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
SizedBox(height: context.textScaleFactor * 18.0),
|
SizedBox(height: context.textScaleFactor * 18.0),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
if (showBottomRow)
|
if (showBottomRow)
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(left: leftPadding),
|
padding: EdgeInsets.only(
|
||||||
|
left: leftPadding,
|
||||||
|
bottom:
|
||||||
|
isPinned && widget.showPinHighlight ? 6.0 : 0.0,
|
||||||
|
),
|
||||||
child: _bottomRow,
|
child: _bottomRow,
|
||||||
),
|
),
|
||||||
if (isFailedState)
|
if (isFailedState)
|
||||||
|
|||||||
Reference in New Issue
Block a user