Fixed CircularProgressIndicator color and position show in notification

This commit is contained in:
llsajjad
2025-09-23 16:07:44 +03:30
parent 1f60954c53
commit 1901b84b2d
4 changed files with 60 additions and 32 deletions
@@ -92,16 +92,27 @@ class _DesktopNotificationPageState extends State<DesktopNotificationPage>
),
),
SizedBox(height: 12.0.h()),
Expanded(
child: TabBarView(
controller: controller,
children: const [
NotificationAllTab(),
NotificationUnreadTab(),
NotificationImportantTab(),
],
viewModel.isLoading
? Container()
: Expanded(
child: TabBarView(
controller: controller,
children: const [
NotificationAllTab(),
NotificationUnreadTab(),
NotificationImportantTab(),
],
),
),
if (viewModel.isLoading) ...[
const Spacer(),
const Center(
child: CircularProgressIndicator(
color: AppColors.secondary50,
),
),
),
const Spacer(),
],
SizedBox(height: 10.0.h()),
Row(
children: [