fix: dark mode appbar color (#24976)

* fix: dark mode appbar color

* update: using scrolledUnderElevation for sufaceTint change

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
Akash Karmakar
2026-01-14 23:17:34 +05:30
committed by GitHub
parent 15224a9ac5
commit ed9448a6ee
2 changed files with 5 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ ThemeData getThemeData({required ColorScheme colorScheme, required Locale locale
fontWeight: FontWeight.w600,
fontSize: 18,
),
backgroundColor: isDark ? colorScheme.surfaceContainer : colorScheme.surface,
backgroundColor: colorScheme.surface,
foregroundColor: colorScheme.primary,
elevation: 0,
scrolledUnderElevation: 0,

View File

@@ -50,6 +50,10 @@ class ImmichSliverAppBar extends ConsumerWidget {
duration: Durations.medium1,
opacity: isMultiSelectEnabled ? 0 : 1,
sliver: SliverAppBar(
backgroundColor: context.colorScheme.surface,
surfaceTintColor: context.colorScheme.surfaceTint,
elevation: 0,
scrolledUnderElevation: 1.0,
floating: floating,
pinned: pinned,
snap: snap,