From 9af096b97a6a050f476f8db2b34263bbc5a56c6f Mon Sep 17 00:00:00 2001 From: Hamlet Jiang Su Date: Tue, 22 Oct 2024 09:39:27 -0700 Subject: [PATCH] fix: potentially fix issue with markdown toolbar not showing when keyboard is shown on some devices --- lib/comment/view/create_comment_page.dart | 2 ++ lib/community/pages/create_post_page.dart | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/comment/view/create_comment_page.dart b/lib/comment/view/create_comment_page.dart index b55c35845..48fbc63e5 100644 --- a/lib/comment/view/create_comment_page.dart +++ b/lib/comment/view/create_comment_page.dart @@ -274,6 +274,7 @@ class _CreateCommentPageState extends State { FocusManager.instance.primaryFocus?.unfocus(); }, child: Scaffold( + resizeToAvoidBottomInset: false, appBar: AppBar( title: Text(widget.commentView != null ? l10n.editComment : l10n.createComment), toolbarHeight: 70.0, @@ -405,6 +406,7 @@ class _CreateCommentPageState extends State { const Divider(height: 1), Container( color: theme.cardColor, + margin: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom), child: Row( children: [ Expanded( diff --git a/lib/community/pages/create_post_page.dart b/lib/community/pages/create_post_page.dart index 370ff22af..db5d8f80f 100644 --- a/lib/community/pages/create_post_page.dart +++ b/lib/community/pages/create_post_page.dart @@ -376,6 +376,7 @@ class _CreatePostPageState extends State { FocusManager.instance.primaryFocus?.unfocus(); }, child: Scaffold( + resizeToAvoidBottomInset: false, appBar: AppBar( title: Text(widget.postView != null ? l10n.editPost : l10n.createPost), toolbarHeight: 70.0, @@ -590,6 +591,7 @@ class _CreatePostPageState extends State { ), Container( color: theme.cardColor, + margin: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom), child: Row( children: [ Expanded(