Skip to content

Commit

Permalink
feat(#636): app bar not changing color on scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Dec 21, 2023
1 parent ba595b0 commit 6813669
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/lib/common/widgets/page_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ AppBar? buildBarBottom(String? barBottom) {
? null
: AppBar(
automaticallyImplyLeading: false,
scrolledUnderElevation: 0,
backgroundColor: PharMeTheme.appBarTheme.backgroundColor,
elevation: PharMeTheme.appBarTheme.elevation,
title: RichText(
Expand All @@ -35,6 +36,7 @@ Scaffold pageScaffold({
key: key,
body: CustomScrollView(slivers: [
SliverAppBar(
scrolledUnderElevation: 0,
backgroundColor: PharMeTheme.appBarTheme.backgroundColor,
foregroundColor: PharMeTheme.appBarTheme.foregroundColor,
elevation: PharMeTheme.appBarTheme.elevation,
Expand Down Expand Up @@ -71,6 +73,7 @@ Scaffold unscrollablePageScaffold({
title: buildTitle(title),
actions: actions,
bottom: buildBarBottom(barBottom),
scrolledUnderElevation: 0,
);
return Scaffold(
key: key,
Expand Down

0 comments on commit 6813669

Please sign in to comment.