Skip to content

Commit

Permalink
Fix additional colour/theme issues (#1635)
Browse files Browse the repository at this point in the history
  • Loading branch information
micahmo authored Dec 17, 2024
1 parent b5e4a05 commit a9cccda
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/comment/view/create_comment_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ class _CreateCommentPageState extends State<CreateCommentPage> {
centerTitle: false,
),
body: SafeArea(
bottom: false,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Expand Down Expand Up @@ -502,6 +503,10 @@ class _CreateCommentPageState extends State<CreateCommentPage> {
],
),
),
Container(
height: MediaQuery.of(context).padding.bottom,
color: theme.cardColor,
),
],
),
),
Expand Down
5 changes: 5 additions & 0 deletions lib/community/pages/create_post_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ class _CreatePostPageState extends State<CreatePostPage> {
centerTitle: false,
),
body: SafeArea(
bottom: false,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Expand Down Expand Up @@ -683,6 +684,10 @@ class _CreatePostPageState extends State<CreatePostPage> {
],
),
),
Container(
height: MediaQuery.of(context).padding.bottom,
color: theme.cardColor,
),
],
),
),
Expand Down
10 changes: 9 additions & 1 deletion lib/modlog/view/modlog_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ class _ModlogFeedViewState extends State<ModlogFeedView> {

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<ModlogBloc, ModlogState>(
listenWhen: (previous, current) {
if (current.status == ModlogStatus.initial) {
Expand Down Expand Up @@ -339,6 +340,13 @@ class _ModlogFeedViewState extends State<ModlogFeedView> {
),
],
),
if (thunderState.hideTopBarOnScroll)
Positioned(
child: Container(
height: MediaQuery.of(context).padding.top,
color: theme.colorScheme.surface,
),
)
],
),
);
Expand Down

0 comments on commit a9cccda

Please sign in to comment.