Add deleted by creator

This commit is contained in:
shilangyu 2021-03-09 08:53:26 +01:00
parent 20c34b4477
commit eff42b6b4f
2 changed files with 7 additions and 5 deletions

View File

@ -335,8 +335,10 @@ class PrivateMessageTile extends HookWidget {
), ),
const SizedBox(height: 5), const SizedBox(height: 5),
if (pmv.value.privateMessage.deleted) if (pmv.value.privateMessage.deleted)
const Text('deleted by creator', Text(
style: TextStyle(fontStyle: FontStyle.italic)) L10n.of(context).deleted_by_creator,
style: const TextStyle(fontStyle: FontStyle.italic),
)
else else
body, body,
Row(children: [ Row(children: [

View File

@ -218,10 +218,10 @@ class CommentWidget extends HookWidget {
final body = () { final body = () {
if (isDeleted.value) { if (isDeleted.value) {
return const Flexible( return Flexible(
child: Text( child: Text(
'comment deleted by creator', L10n.of(context).deleted_by_creator,
style: TextStyle(fontStyle: FontStyle.italic), style: const TextStyle(fontStyle: FontStyle.italic),
), ),
); );
} else if (comment.comment.removed) { } else if (comment.comment.removed) {