@@ -24,7 +24,17 @@ class SettingsPage extends StatelessWidget {
24
24
25
25
return Scaffold (
26
26
appBar: AppBar (
27
- // Standard back button provided by Scaffold/GoRouter
27
+ leading: IconButton (
28
+ icon: const Icon (Icons .arrow_back),
29
+ onPressed: () {
30
+ if (context.canPop ()) {
31
+ context.pop ();
32
+ } else {
33
+ // Fallback if it can't pop, perhaps go to account page directly
34
+ context.goNamed (Routes .accountName);
35
+ }
36
+ },
37
+ ),
28
38
title: Text (l10n.settingsTitle), // Add l10n key: settingsTitle
29
39
),
30
40
// Use BlocBuilder to react to loading/error states if needed,
@@ -70,6 +80,13 @@ class SettingsPage extends StatelessWidget {
70
80
return ListView (
71
81
padding: const EdgeInsets .symmetric (vertical: AppSpacing .md),
72
82
children: [
83
+ _buildSettingsTile (
84
+ context: context,
85
+ icon: Icons .language_outlined,
86
+ title: l10n.settingsLanguageTitle, // Add l10n key
87
+ onTap: () => context.goNamed (Routes .settingsLanguageName),
88
+ ),
89
+ const Divider (indent: AppSpacing .lg, endIndent: AppSpacing .lg),
73
90
_buildSettingsTile (
74
91
context: context,
75
92
icon: Icons .palette_outlined,
@@ -90,13 +107,6 @@ class SettingsPage extends StatelessWidget {
90
107
title: l10n.settingsNotificationsTitle, // Add l10n key
91
108
onTap: () => context.goNamed (Routes .settingsNotificationsName),
92
109
),
93
- const Divider (indent: AppSpacing .lg, endIndent: AppSpacing .lg),
94
- _buildSettingsTile (
95
- context: context,
96
- icon: Icons .language_outlined,
97
- title: l10n.settingsLanguageTitle, // Add l10n key
98
- onTap: () => context.goNamed (Routes .settingsLanguageName),
99
- ),
100
110
],
101
111
);
102
112
},
0 commit comments