From a9cccda414ce7e7e0f86692e6b2a29abcc5c6c8a Mon Sep 17 00:00:00 2001 From: Micah Morrison Date: Tue, 17 Dec 2024 13:43:31 -0500 Subject: [PATCH] Fix additional colour/theme issues (#1635) --- lib/comment/view/create_comment_page.dart | 5 +++++ lib/community/pages/create_post_page.dart | 5 +++++ lib/modlog/view/modlog_page.dart | 10 +++++++++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/lib/comment/view/create_comment_page.dart b/lib/comment/view/create_comment_page.dart index 28165ac4d..b35f8c6ea 100644 --- a/lib/comment/view/create_comment_page.dart +++ b/lib/comment/view/create_comment_page.dart @@ -281,6 +281,7 @@ class _CreateCommentPageState extends State { centerTitle: false, ), body: SafeArea( + bottom: false, child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ @@ -502,6 +503,10 @@ class _CreateCommentPageState extends State { ], ), ), + Container( + height: MediaQuery.of(context).padding.bottom, + color: theme.cardColor, + ), ], ), ), diff --git a/lib/community/pages/create_post_page.dart b/lib/community/pages/create_post_page.dart index bce8af19f..6f4405cf1 100644 --- a/lib/community/pages/create_post_page.dart +++ b/lib/community/pages/create_post_page.dart @@ -383,6 +383,7 @@ class _CreatePostPageState extends State { centerTitle: false, ), body: SafeArea( + bottom: false, child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ @@ -683,6 +684,10 @@ class _CreatePostPageState extends State { ], ), ), + Container( + height: MediaQuery.of(context).padding.bottom, + color: theme.cardColor, + ), ], ), ), diff --git a/lib/modlog/view/modlog_page.dart b/lib/modlog/view/modlog_page.dart index 2188fd2ed..69121c339 100644 --- a/lib/modlog/view/modlog_page.dart +++ b/lib/modlog/view/modlog_page.dart @@ -166,7 +166,8 @@ class _ModlogFeedViewState extends State { return Scaffold( body: SafeArea( - top: thunderState.hideTopBarOnScroll, // Don't apply to top of screen to allow for the status bar colour to extend + top: false, + bottom: false, child: BlocConsumer( listenWhen: (previous, current) { if (current.status == ModlogStatus.initial) { @@ -339,6 +340,13 @@ class _ModlogFeedViewState extends State { ), ], ), + if (thunderState.hideTopBarOnScroll) + Positioned( + child: Container( + height: MediaQuery.of(context).padding.top, + color: theme.colorScheme.surface, + ), + ) ], ), );