Skip to content

Commit

Permalink
Fix create page markdown toolbar visibility (#1581)
Browse files Browse the repository at this point in the history
fix: potentially fix issue with markdown toolbar not showing when keyboard is shown on some devices
  • Loading branch information
hjiangsu authored Oct 22, 2024
1 parent e723229 commit 15ff8b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/comment/view/create_comment_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ class _CreateCommentPageState extends State<CreateCommentPage> {
FocusManager.instance.primaryFocus?.unfocus();
},
child: Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
title: Text(widget.commentView != null ? l10n.editComment : l10n.createComment),
toolbarHeight: 70.0,
Expand Down Expand Up @@ -405,6 +406,7 @@ class _CreateCommentPageState extends State<CreateCommentPage> {
const Divider(height: 1),
Container(
color: theme.cardColor,
margin: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
child: Row(
children: [
Expanded(
Expand Down
2 changes: 2 additions & 0 deletions lib/community/pages/create_post_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ class _CreatePostPageState extends State<CreatePostPage> {
FocusManager.instance.primaryFocus?.unfocus();
},
child: Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
title: Text(widget.postView != null ? l10n.editPost : l10n.createPost),
toolbarHeight: 70.0,
Expand Down Expand Up @@ -590,6 +591,7 @@ class _CreatePostPageState extends State<CreatePostPage> {
),
Container(
color: theme.cardColor,
margin: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
child: Row(
children: [
Expanded(
Expand Down

0 comments on commit 15ff8b4

Please sign in to comment.