Fixed loading bug in notification mobile

This commit is contained in:
llsajjad
2025-09-24 13:39:19 +03:30
parent e5cf89c2ce
commit b38c3fd4a4
2 changed files with 23 additions and 3 deletions
@@ -112,7 +112,17 @@ class _MobileNotificationPageState extends State<MobileNotificationPage>
],
),
),
if (viewModel.isLoading) ...[
if (viewModel.isMoreLoading) ...[
const Padding(
padding: EdgeInsets.symmetric(vertical: 16),
child: Center(
child: CircularProgressIndicator(color: AppColors.secondary50),
),
),
],
if (viewModel.isLoading &&
(viewModel.notificationResponse?.data?.notifications?.isEmpty ??
true)) ...[
const Spacer(),
const Center(
child: CircularProgressIndicator(color: AppColors.secondary50),