Skip to content

Commit

Permalink
fix(thread): Fix post group title background color
Browse files Browse the repository at this point in the history
  • Loading branch information
realth000 committed Feb 14, 2024
1 parent 7300fea commit 2dbdb93
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/features/thread/widgets/post_group.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flex_color_scheme/flex_color_scheme.dart';
import 'package:flutter/material.dart';
import 'package:tsdm_client/generated/i18n/strings.g.dart';

Expand All @@ -20,7 +19,11 @@ class PostGroupHeaderDelegate extends SliverPersistentHeaderDelegate {
) {
return Container(
alignment: Alignment.centerLeft,
color: Theme.of(context).colorScheme.outlineVariant.darken(),
color: ElevationOverlay.applySurfaceTint(
Theme.of(context).colorScheme.surface,
Theme.of(context).colorScheme.surfaceTint,
Theme.of(context).navigationBarTheme.elevation ?? 3,
),
padding: const EdgeInsets.only(left: 20),
height: _headerHeight,
child: Text(context.t.general.pageIndex(index: groupIndex)),
Expand Down

0 comments on commit 2dbdb93

Please sign in to comment.