Skip to content

Commit 6bbc947

Browse files
committed
feat(settings): Disable notification settings UI
- Temporarily disabled UI - Backend and model pending
1 parent d28b4ec commit 6bbc947

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

lib/settings/view/notification_settings_page.dart

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ class NotificationSettingsPage extends StatelessWidget {
2727
);
2828
}
2929

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
3135

3236
return Scaffold(
3337
appBar: AppBar(
@@ -40,15 +44,15 @@ class NotificationSettingsPage extends StatelessWidget {
4044
SwitchListTile(
4145
title: Text(l10n.settingsNotificationsEnableLabel), // Add l10n key
4246
value: notificationsEnabled,
43-
onChanged: (bool value) {
44-
settingsBloc.add(SettingsNotificationsEnabledChanged(value));
45-
},
47+
onChanged: null, // Disable the switch
4648
secondary: const Icon(Icons.notifications_active_outlined),
4749
),
4850
const Divider(),
4951

5052
// --- 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+
/*
5256
if (notificationsEnabled) ...[
5357
ListTile(
5458
leading: const Icon(Icons.category_outlined),
@@ -93,6 +97,7 @@ class NotificationSettingsPage extends StatelessWidget {
9397
},
9498
),
9599
],
100+
*/
96101
],
97102
),
98103
);

0 commit comments

Comments
 (0)