Skip to content

Commit

Permalink
Fix: back button invisible for some preferences (#2760)
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k committed Aug 9, 2022
1 parent f6d7e08 commit e58db02
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -127,7 +127,9 @@ class _UserPreferencesPageState extends State<UserPreferencesPage>

if (headerAsset == null) {
return SmoothScaffold(
appBar: AppBar(title: Text(appBarTitle)),
appBar: AppBar(
title: Text(appBarTitle),
),
body: Scrollbar(child: list),
);
}
Expand All @@ -141,8 +143,8 @@ class _UserPreferencesPageState extends State<UserPreferencesPage>
return SmoothScaffold(
statusBarBackgroundColor: dark ? null : headerColor,
brightness: Brightness.light,
contentBehindStatusBar: true,
spaceBehindStatusBar: true,
contentBehindStatusBar: false,
spaceBehindStatusBar: false,
body: CustomScrollView(
slivers: <Widget>[
SliverAppBar(
Expand All @@ -153,7 +155,6 @@ class _UserPreferencesPageState extends State<UserPreferencesPage>
backgroundColor: dark ? null : headerColor,
expandedHeight: backgroundHeight + titleHeightInExpandedMode,
foregroundColor: foregroundColor,
toolbarHeight: kToolbarHeight - mediaQueryData.viewPadding.top,
flexibleSpace: FlexibleSpaceBar(
title: Text(
appBarTitle,
Expand Down

0 comments on commit e58db02

Please sign in to comment.