diff --git a/lib/comment/view/create_comment_page.dart b/lib/comment/view/create_comment_page.dart index b61a18e03..cf43d59ff 100644 --- a/lib/comment/view/create_comment_page.dart +++ b/lib/comment/view/create_comment_page.dart @@ -269,7 +269,10 @@ class _CreateCommentPageState extends State { } }, builder: (context, state) { - return KeyboardDismissOnTap( + return GestureDetector( + onTap: () { + FocusManager.instance.primaryFocus?.unfocus(); + }, child: Scaffold( appBar: AppBar( title: Text(widget.commentView != null ? l10n.editComment : l10n.createComment), diff --git a/lib/community/pages/create_post_page.dart b/lib/community/pages/create_post_page.dart index ad0659a2b..014a5d1bf 100644 --- a/lib/community/pages/create_post_page.dart +++ b/lib/community/pages/create_post_page.dart @@ -371,7 +371,10 @@ class _CreatePostPageState extends State { } }, builder: (context, state) { - return KeyboardDismissOnTap( + return GestureDetector( + onTap: () { + FocusManager.instance.primaryFocus?.unfocus(); + }, child: Scaffold( appBar: AppBar( title: Text(widget.postView != null ? l10n.editPost : l10n.createPost),