From eff42b6b4fd376dee1279fa3bcd9b4e5e09b6248 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Tue, 9 Mar 2021 08:53:26 +0100 Subject: [PATCH] Add deleted by creator --- lib/pages/inbox.dart | 6 ++++-- lib/widgets/comment.dart | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/pages/inbox.dart b/lib/pages/inbox.dart index d101562..3fc2a8a 100644 --- a/lib/pages/inbox.dart +++ b/lib/pages/inbox.dart @@ -335,8 +335,10 @@ class PrivateMessageTile extends HookWidget { ), const SizedBox(height: 5), if (pmv.value.privateMessage.deleted) - const Text('deleted by creator', - style: TextStyle(fontStyle: FontStyle.italic)) + Text( + L10n.of(context).deleted_by_creator, + style: const TextStyle(fontStyle: FontStyle.italic), + ) else body, Row(children: [ diff --git a/lib/widgets/comment.dart b/lib/widgets/comment.dart index b15d07b..0e04ade 100644 --- a/lib/widgets/comment.dart +++ b/lib/widgets/comment.dart @@ -218,10 +218,10 @@ class CommentWidget extends HookWidget { final body = () { if (isDeleted.value) { - return const Flexible( + return Flexible( child: Text( - 'comment deleted by creator', - style: TextStyle(fontStyle: FontStyle.italic), + L10n.of(context).deleted_by_creator, + style: const TextStyle(fontStyle: FontStyle.italic), ), ); } else if (comment.comment.removed) {