Skip to content

Commit

Permalink
Potentially fix for markdown toolbar not showing above system keyboard (
Browse files Browse the repository at this point in the history
#1524)

fix: potentially apply fix for markdown toolbar not showing above keyboard
  • Loading branch information
hjiangsu authored Aug 12, 2024
1 parent ea5908f commit 01febb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/comment/view/create_comment_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ class _CreateCommentPageState extends State<CreateCommentPage> {
}
},
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),
Expand Down
5 changes: 4 additions & 1 deletion lib/community/pages/create_post_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,10 @@ class _CreatePostPageState extends State<CreatePostPage> {
}
},
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),
Expand Down

0 comments on commit 01febb4

Please sign in to comment.