Commit 9bae4a7 1 parent 8a4f4fc commit 9bae4a7 Copy full SHA for 9bae4a7
File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class _CommentReferenceState extends State<CommentReference> {
94
94
${formatTimeToString (dateTime : (widget .comment .comment .updated ?? widget .comment .comment .published ).toIso8601String ())}\n
95
95
${widget .comment .comment .content }""" ,
96
96
child: InkWell (
97
- onTap: () async => await navigateToComment (context, widget.comment),
97
+ onTap: widget.comment.post.deleted ? null : () async => await navigateToComment (context, widget.comment),
98
98
child: Padding (
99
99
padding: const EdgeInsets .symmetric (vertical: 4.0 ),
100
100
child: Column (
@@ -111,6 +111,14 @@ class _CommentReferenceState extends State<CommentReference> {
111
111
children: [
112
112
Row (
113
113
children: [
114
+ if (widget.comment.post.deleted) ...[
115
+ const Icon (
116
+ Icons .delete_rounded,
117
+ size: 15 ,
118
+ color: Colors .red,
119
+ ),
120
+ const SizedBox (width: 5 ),
121
+ ],
114
122
Flexible (
115
123
child: ExcludeSemantics (
116
124
child: Text (
You can’t perform that action at this time.
0 commit comments