Skip to content

Commit f0720b9

Browse files
committed
feat: apply blurred appbar surface to ConversationsScreen
1 parent bdcdc82 commit f0720b9

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

lib/features/messaging/features/conversations/view/conversations_screen.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import 'package:webtrit_phone/features/features.dart';
1313
import 'package:webtrit_phone/l10n/l10n.dart';
1414
import 'package:webtrit_phone/models/models.dart';
1515
import 'package:webtrit_phone/repositories/repositories.dart';
16-
import 'package:webtrit_phone/theme/theme.dart';
1716
import 'package:webtrit_phone/widgets/widgets.dart';
1817

1918
import 'conversations_screen_style.dart';
@@ -178,9 +177,6 @@ class _ConversationsScreenState extends State<ConversationsScreen> with SingleTi
178177
Widget build(BuildContext context) {
179178
final themeData = Theme.of(context);
180179
final effectiveStyle = widget.style ?? themeData.extension<ConversationsScreenStyles>()?.primary;
181-
final background = effectiveStyle?.background;
182-
final isComplexBackground = background?.isComplex ?? false;
183-
184180
final colorScheme = themeData.colorScheme;
185181
final mediaQueryData = MediaQuery.of(context);
186182

@@ -249,11 +245,12 @@ class _ConversationsScreenState extends State<ConversationsScreen> with SingleTi
249245
background: effectiveStyle?.background,
250246
contentThemeOverride: effectiveStyle?.contentThemeOverride ?? ThemeMode.system,
251247
applyToAppBar: effectiveStyle?.applyToAppBar ?? true,
248+
extendBodyBehindAppBar: true,
252249
appBar: MainAppBar(
253250
title: widget.title,
254251
context: context,
255-
backgroundColor: isComplexBackground ? Colors.transparent : null,
256-
elevation: isComplexBackground ? 0 : null,
252+
backgroundColor: themeData.canvasColor.withAlpha(150),
253+
flexibleSpace: const BlurredSurface(),
257254
bottom: PreferredSize(
258255
preferredSize: Size.fromHeight(
259256
(tabBar != null ? kMainAppBarBottomTabHeight : 0) + kMainAppBarBottomSearchHeight,

0 commit comments

Comments
 (0)