From 47ab40a4f65129712494bd1768bd53957f9dee79 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Mon, 5 Oct 2020 21:38:19 +0200 Subject: [PATCH] moved delete action one higher --- lib/widgets/comment.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/widgets/comment.dart b/lib/widgets/comment.dart index 5e69edd..dee70ec 100644 --- a/lib/widgets/comment.dart +++ b/lib/widgets/comment.dart @@ -182,17 +182,17 @@ class Comment extends HookWidget { pop(); }, ), - ListTile( - leading: Icon(Icons.info_outline), - title: Text('Nerd stuff'), - onTap: () => _showCommentInfo(context), - ), if (isMine) ListTile( leading: Icon(isDeleted.value ? Icons.restore : Icons.delete), title: Text(isDeleted.value ? 'Restore' : 'Delete'), onTap: loggedInAction(handleDelete), - ) + ), + ListTile( + leading: Icon(Icons.info_outline), + title: Text('Nerd stuff'), + onTap: () => _showCommentInfo(context), + ), ], ), ),