@@ -27,7 +27,11 @@ class NotificationSettingsPage extends StatelessWidget {
27
27
);
28
28
}
29
29
30
- final notificationsEnabled = state.notificationSettings.enabled;
30
+ // TODO(cline): Full implementation of Notification Settings UI and BLoC logic
31
+ // is pending backend and shared model development (specifically, adding
32
+ // a 'notificationsEnabled' field to UserAppSettings or a similar model).
33
+ // This UI is temporarily disabled.
34
+ const notificationsEnabled = false ; // Placeholder value
31
35
32
36
return Scaffold (
33
37
appBar: AppBar (
@@ -40,15 +44,15 @@ class NotificationSettingsPage extends StatelessWidget {
40
44
SwitchListTile (
41
45
title: Text (l10n.settingsNotificationsEnableLabel), // Add l10n key
42
46
value: notificationsEnabled,
43
- onChanged: (bool value) {
44
- settingsBloc.add (SettingsNotificationsEnabledChanged (value));
45
- },
47
+ onChanged: null , // Disable the switch
46
48
secondary: const Icon (Icons .notifications_active_outlined),
47
49
),
48
50
const Divider (),
49
51
50
52
// --- Detailed Notification Settings (Conditional) ---
51
- // Only show these if notifications are enabled
53
+ // Only show these if notifications are enabled (currently disabled)
54
+ // The following section is commented out as it depends on notificationsEnabled
55
+ /*
52
56
if (notificationsEnabled) ...[
53
57
ListTile(
54
58
leading: const Icon(Icons.category_outlined),
@@ -93,6 +97,7 @@ class NotificationSettingsPage extends StatelessWidget {
93
97
},
94
98
),
95
99
],
100
+ */
96
101
],
97
102
),
98
103
);
0 commit comments