Fixed loading bug in notification mobile
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user