diff --git a/it0_app/lib/features/notifications/data/in_site_notification_repository.dart b/it0_app/lib/features/notifications/data/in_site_notification_repository.dart index 668378c..aa3b39e 100644 --- a/it0_app/lib/features/notifications/data/in_site_notification_repository.dart +++ b/it0_app/lib/features/notifications/data/in_site_notification_repository.dart @@ -45,6 +45,6 @@ class InSiteNotificationRepository { final inSiteNotificationRepositoryProvider = Provider((ref) { - final dio = ref.watch(dioClientProvider).dio; + final dio = ref.watch(dioClientProvider); return InSiteNotificationRepository(dio); }); diff --git a/it0_app/lib/features/notifications/presentation/pages/notification_preferences_page.dart b/it0_app/lib/features/notifications/presentation/pages/notification_preferences_page.dart index 8452913..bd12f90 100644 --- a/it0_app/lib/features/notifications/presentation/pages/notification_preferences_page.dart +++ b/it0_app/lib/features/notifications/presentation/pages/notification_preferences_page.dart @@ -6,7 +6,7 @@ import '../../../../core/network/dio_client.dart'; // ── Providers ────────────────────────────────────────────────────────────── final _channelPrefsProvider = FutureProvider.autoDispose>((ref) async { - final dio = ref.watch(dioClientProvider).dio; + final dio = ref.watch(dioClientProvider); final res = await dio.get('/api/v1/notifications/channels/me/preferences'); final list = res.data as List; return list @@ -31,7 +31,7 @@ class _NotificationPreferencesPageState extends ConsumerState _saving = true); try { - final dio = ref.read(dioClientProvider).dio; + final dio = ref.read(dioClientProvider); final preferences = _pendingChanges.entries .map((e) => {'channelKey': e.key, 'enabled': e.value}) .toList(); diff --git a/it0_app/lib/features/profile/presentation/pages/profile_page.dart b/it0_app/lib/features/profile/presentation/pages/profile_page.dart index 90cf33c..f9a7cdb 100644 --- a/it0_app/lib/features/profile/presentation/pages/profile_page.dart +++ b/it0_app/lib/features/profile/presentation/pages/profile_page.dart @@ -89,9 +89,8 @@ class _ProfilePageState extends ConsumerState { _InSiteMessageRow(subtitleColor: subtitleColor), _SettingsRow( icon: Icons.tune_outlined, - label: '通知偏好设置', - subtitle: '管理各类通知的订阅开关', - subtitleColor: subtitleColor, + iconBg: const Color(0xFF8B5CF6), + title: '通知偏好设置', onTap: () => context.push('/notifications/preferences'), ), ], diff --git a/it0_app/lib/features/referral/data/referral_repository.dart b/it0_app/lib/features/referral/data/referral_repository.dart index 24c3eb4..9ace15f 100644 --- a/it0_app/lib/features/referral/data/referral_repository.dart +++ b/it0_app/lib/features/referral/data/referral_repository.dart @@ -52,6 +52,6 @@ class ReferralRepository { // ── Riverpod provider ──────────────────────────────────────────────────────── final referralRepositoryProvider = Provider((ref) { - final dio = ref.watch(dioClientProvider).dio; + final dio = ref.watch(dioClientProvider); return ReferralRepository(dio); });