mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 11:18:41 +00:00
always display edit icon when modified
This commit is contained in:
parent
f2bd80c2dc
commit
cb1ad9bdc7
1 changed files with 8 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ class ChatTextEntry extends StatelessWidget {
|
||||||
width: spacerWidth,
|
width: spacerWidth,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
if (displayTime)
|
if (displayTime || message.modifiedAt != null)
|
||||||
Align(
|
Align(
|
||||||
alignment: AlignmentGeometry.centerRight,
|
alignment: AlignmentGeometry.centerRight,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
|
@ -108,8 +108,14 @@ class ChatTextEntry extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
// if (displayTime)
|
||||||
Text(
|
Text(
|
||||||
friendlyTime(context, message.createdAt),
|
friendlyTime(
|
||||||
|
context,
|
||||||
|
(message.modifiedAt != null)
|
||||||
|
? message.modifiedAt!
|
||||||
|
: message.createdAt,
|
||||||
|
),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
color: Colors.white.withAlpha(150),
|
color: Colors.white.withAlpha(150),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue