Skip to content

Commit

Permalink
Ensure we use the same back arrow on all screens (#3828)
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k authored Apr 22, 2023
1 parent 7498ced commit 85a3525
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:provider/provider.dart';
import 'package:smooth_app/data_models/product_preferences.dart';
import 'package:smooth_app/data_models/user_preferences.dart';
import 'package:smooth_app/generic_lib/design_constants.dart';
import 'package:smooth_app/generic_lib/widgets/smooth_back_button.dart';
import 'package:smooth_app/helpers/app_helper.dart';
import 'package:smooth_app/pages/preferences/abstract_user_preferences.dart';
import 'package:smooth_app/pages/preferences/user_preferences_account.dart';
Expand Down Expand Up @@ -131,6 +132,7 @@ class _UserPreferencesPageState extends State<UserPreferencesPage>
return SmoothScaffold(
appBar: AppBar(
title: Text(appBarTitle),
leading: const SmoothBackButton(),
),
body: Scrollbar(child: list),
);
Expand All @@ -154,7 +156,10 @@ class _UserPreferencesPageState extends State<UserPreferencesPage>
brightness: Brightness.light,
contentBehindStatusBar: false,
spaceBehindStatusBar: false,
appBar: AppBar(title: Text(appBarTitle)),
appBar: AppBar(
title: Text(appBarTitle),
leading: const SmoothBackButton(),
),
body: ListView(children: children),
);
}
Expand Down

0 comments on commit 85a3525

Please sign in to comment.