Fixed CircularProgressIndicator color and position show in notification
This commit is contained in:
@@ -92,16 +92,27 @@ class _DesktopNotificationPageState extends State<DesktopNotificationPage>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 12.0.h()),
|
SizedBox(height: 12.0.h()),
|
||||||
Expanded(
|
viewModel.isLoading
|
||||||
child: TabBarView(
|
? Container()
|
||||||
controller: controller,
|
: Expanded(
|
||||||
children: const [
|
child: TabBarView(
|
||||||
NotificationAllTab(),
|
controller: controller,
|
||||||
NotificationUnreadTab(),
|
children: const [
|
||||||
NotificationImportantTab(),
|
NotificationAllTab(),
|
||||||
],
|
NotificationUnreadTab(),
|
||||||
|
NotificationImportantTab(),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
if (viewModel.isLoading) ...[
|
||||||
|
const Spacer(),
|
||||||
|
const Center(
|
||||||
|
child: CircularProgressIndicator(
|
||||||
|
color: AppColors.secondary50,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
const Spacer(),
|
||||||
|
],
|
||||||
SizedBox(height: 10.0.h()),
|
SizedBox(height: 10.0.h()),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
@@ -98,20 +98,26 @@ class _MobileNotificationPageState extends State<MobileNotificationPage>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 12.0.h()),
|
SizedBox(height: 12.0.h()),
|
||||||
Expanded(
|
viewModel.isLoading
|
||||||
child: TabBarView(
|
? Container()
|
||||||
controller: controller,
|
: Expanded(
|
||||||
children: [
|
child: TabBarView(
|
||||||
NotificationAllTab(scrollController: _scrollController),
|
controller: controller,
|
||||||
NotificationUnreadTab(scrollController: _scrollController),
|
children: [
|
||||||
NotificationImportantTab(scrollController: _scrollController),
|
NotificationAllTab(scrollController: _scrollController),
|
||||||
],
|
NotificationUnreadTab(scrollController: _scrollController),
|
||||||
),
|
NotificationImportantTab(
|
||||||
),
|
scrollController: _scrollController,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
if (viewModel.isLoading) ...[
|
if (viewModel.isLoading) ...[
|
||||||
SizedBox(height: 10.0.h()),
|
const Spacer(),
|
||||||
const Center(child: CircularProgressIndicator()),
|
const Center(
|
||||||
SizedBox(height: 10.0.h()),
|
child: CircularProgressIndicator(color: AppColors.secondary50),
|
||||||
|
),
|
||||||
|
const Spacer(),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -96,16 +96,27 @@ class _TabletNotificationPageState extends State<TabletNotificationPage>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 12.0.h()),
|
SizedBox(height: 12.0.h()),
|
||||||
Expanded(
|
viewModel.isLoading
|
||||||
child: TabBarView(
|
? Container()
|
||||||
controller: controller,
|
: Expanded(
|
||||||
children: const [
|
child: TabBarView(
|
||||||
NotificationAllTab(),
|
controller: controller,
|
||||||
NotificationUnreadTab(),
|
children: const [
|
||||||
NotificationImportantTab(),
|
NotificationAllTab(),
|
||||||
],
|
NotificationUnreadTab(),
|
||||||
|
NotificationImportantTab(),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
if (viewModel.isLoading) ...[
|
||||||
|
const Spacer(),
|
||||||
|
const Center(
|
||||||
|
child: CircularProgressIndicator(
|
||||||
|
color: AppColors.secondary50,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
const Spacer(),
|
||||||
|
],
|
||||||
SizedBox(height: 10.0.h()),
|
SizedBox(height: 10.0.h()),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
Reference in New Issue
Block a user