added new response data from notifications api

This commit is contained in:
llsajjad
2025-09-27 13:02:12 +03:30
parent 7e58a694ff
commit fa974bc4a2
16 changed files with 1226 additions and 869 deletions
@@ -17,9 +17,9 @@ class NotificationImportantTab extends StatelessWidget {
return const Center(child: CircularProgressIndicator());
}
final importantFromApi = viewModel.importantNotificationResponse?.data?.notifications ?? [];
final importantFromApi = viewModel.importantNotificationResponse?.data ?? [];
final allNotifications = viewModel.allNotificationResponse?.data?.notifications ?? [];
final allNotifications = viewModel.allNotificationResponse?.data ?? [];
final source = importantFromApi.isNotEmpty ? importantFromApi : allNotifications;