diff --git a/lib/src/screens/entries/entry_comment.dart b/lib/src/screens/entries/entry_comment.dart index 1f5e31f..6526db2 100644 --- a/lib/src/screens/entries/entry_comment.dart +++ b/lib/src/screens/entries/entry_comment.dart @@ -73,13 +73,6 @@ class _EntryCommentState extends State { children: widget.comment.children, )); }), - openContentLabel: 'Open comment', - onOpenContent: () => Navigator.of(context).push( - MaterialPageRoute( - builder: (context) => - EntryCommentScreen(widget.comment.commentId), - ), - ), onReply: whenLoggedIn(context, (body) async { var newSubComment = await api_comments.postComment( context.read().httpClient, diff --git a/lib/src/screens/posts/post_comment.dart b/lib/src/screens/posts/post_comment.dart index 34fe275..70af583 100644 --- a/lib/src/screens/posts/post_comment.dart +++ b/lib/src/screens/posts/post_comment.dart @@ -73,13 +73,6 @@ class _EntryCommentState extends State { children: widget.comment.children, )); }), - openContentLabel: 'Open comment', - onOpenContent: () => Navigator.of(context).push( - MaterialPageRoute( - builder: (context) => - PostCommentScreen(widget.comment.commentId), - ), - ), onReply: whenLoggedIn(context, (body) async { var newSubComment = await api_comments.postComment( context.read().httpClient, diff --git a/lib/src/widgets/content_item.dart b/lib/src/widgets/content_item.dart index b7c9f9c..8be999f 100644 --- a/lib/src/widgets/content_item.dart +++ b/lib/src/widgets/content_item.dart @@ -46,8 +46,6 @@ class ContentItem extends StatefulWidget { final int? numComments; final Future Function(String)? onReply; - final String? openContentLabel; - final Future Function()? onOpenContent; final Future Function(String)? onEdit; final Future Function()? onDelete; @@ -81,8 +79,6 @@ class ContentItem extends StatefulWidget { this.isDownVoted = false, this.onDownVote, this.numComments, - this.openContentLabel, - this.onOpenContent, this.onReply, this.onEdit, this.onDelete, @@ -317,13 +313,6 @@ class _ContentItemState extends State { }, controller: _menuController, menuChildren: [ - if (widget.openContentLabel != null) - MenuItemButton( - onPressed: widget.onOpenContent, - child: Padding( - padding: const EdgeInsets.all(12), - child: Text(widget.openContentLabel!)), - ), MenuItemButton( onPressed: widget.onEdit != null ? () => setState(() {