加载窗样式
This commit is contained in:
@@ -531,7 +531,7 @@ class LoadingDialog {
|
||||
CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc3,
|
||||
themeController.currentColor.sc1,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -222,7 +222,6 @@ Future<void> startMessagePolling(int ent_type) async {
|
||||
if (Get.isRegistered<MhMessageController>()) {
|
||||
Get.find<MhMessageController>().getMessageStatus();
|
||||
await controller.getMessageStatus();
|
||||
|
||||
if (controller.model.system_message_read == 1) {
|
||||
await controller.getMessageList("app_system");
|
||||
final unhandledShareMessages =
|
||||
@@ -236,31 +235,6 @@ Future<void> startMessagePolling(int ent_type) async {
|
||||
(item['read_time'] == null);
|
||||
}).toList();
|
||||
|
||||
// if (unhandledShareMessages.isNotEmpty) {
|
||||
// for (final message in unhandledShareMessages) {
|
||||
// final messageId = message['_id']?.toString();
|
||||
// if (messageId == null || _poppedMessageIds.contains(messageId))
|
||||
// continue;
|
||||
|
||||
// // 新增:如果当前页面是消息页,则跳过弹窗
|
||||
// if (Get.currentRoute == '/messagePage') {
|
||||
// continue;
|
||||
// }
|
||||
|
||||
// _poppedMessageIds.add(messageId);
|
||||
|
||||
// try {
|
||||
// await controller.updateMessageReadStatus(Get.context!, messageId);
|
||||
// } catch (e) {
|
||||
// print("标记消息 $messageId 为已读失败: $e");
|
||||
// }
|
||||
|
||||
// final result = await showMessageConfirmDialog(title: '设备分享提醒'.tr);
|
||||
// if (result == 'confirm') {
|
||||
// Get.toNamed('/messageDetail', arguments: message);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
if (unhandledShareMessages.isNotEmpty) {
|
||||
for (final message in unhandledShareMessages) {
|
||||
final messageId = message['_id']?.toString();
|
||||
|
||||
@@ -121,7 +121,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -132,7 +132,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -144,7 +144,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -640,7 +640,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<
|
||||
Color>(
|
||||
Colors.white),
|
||||
themeController.currentColor.sc1,),
|
||||
),
|
||||
)
|
||||
else
|
||||
|
||||
@@ -155,7 +155,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -368,7 +368,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
||||
height: 24.rpx,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
valueColor: AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ class _WifiPageState extends State<WifiPage> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
Colors.white),
|
||||
themeController.currentColor.sc1,),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -191,7 +191,7 @@ class _WifiPageState extends State<WifiPage> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
Colors.white),
|
||||
themeController.currentColor.sc1,),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -693,7 +693,7 @@ class _WifiPageState extends State<WifiPage> {
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<
|
||||
Color>(
|
||||
Colors.white),
|
||||
themeController.currentColor.sc1,),
|
||||
),
|
||||
)
|
||||
else
|
||||
|
||||
@@ -120,8 +120,9 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
||||
height: 24.rpx,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc1,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -132,7 +133,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -144,7 +145,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -636,7 +637,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<
|
||||
Color>(
|
||||
Colors.white),
|
||||
themeController.currentColor.sc1,),
|
||||
),
|
||||
)
|
||||
else
|
||||
|
||||
@@ -169,7 +169,7 @@ class _MessageWidgetWidgetState extends State<MessageWidgetWidget> {
|
||||
child: Text(
|
||||
label.tr,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
maxLines: 2,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
@@ -184,15 +184,13 @@ class _MessageWidgetWidgetState extends State<MessageWidgetWidget> {
|
||||
|
||||
Widget _buildValueItem(BuildContext context, value) {
|
||||
return Container(
|
||||
constraints: BoxConstraints(
|
||||
minHeight: 62.rpx,
|
||||
),
|
||||
constraints: BoxConstraints(minHeight: 60.rpx, maxHeight: 60.rpx),
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(-1, 0),
|
||||
child: Text(
|
||||
"${value}",
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
maxLines: 2,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
|
||||
@@ -135,7 +135,13 @@ class _EPageState extends State<EPage> with AutomaticKeepAliveClientMixin {
|
||||
Widget _buildLoggedInContent() {
|
||||
return Obx(() {
|
||||
if (finalUri.isEmpty) {
|
||||
return Center(child: CircularProgressIndicator());
|
||||
return Center(
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc1,
|
||||
),
|
||||
));
|
||||
}
|
||||
|
||||
// 如果设备列表为空
|
||||
@@ -173,7 +179,13 @@ class _EPageState extends State<EPage> with AutomaticKeepAliveClientMixin {
|
||||
valueListenable: isPageLoading,
|
||||
builder: (context, isLoading, child) {
|
||||
return isLoading
|
||||
? Center(child: CircularProgressIndicator())
|
||||
? Center(
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc1,
|
||||
),
|
||||
))
|
||||
: SizedBox.shrink();
|
||||
},
|
||||
),
|
||||
|
||||
@@ -78,11 +78,11 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
|
||||
return SizedBox(
|
||||
width: 24.rpx,
|
||||
height: 24.rpx,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
stringToColor("#929699")),
|
||||
),
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
);
|
||||
}
|
||||
return Container();
|
||||
@@ -387,10 +387,11 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
|
||||
return SizedBox(
|
||||
width: 24.rpx,
|
||||
height: 24.rpx,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
);
|
||||
}
|
||||
return Container();
|
||||
|
||||
@@ -140,7 +140,11 @@ class _MHTPeopleInfoPageState extends State<MHTPeopleInfoPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (isLoading) {
|
||||
return Center(child: CircularProgressIndicator());
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
}
|
||||
|
||||
return LayoutBuilder(
|
||||
|
||||
@@ -169,11 +169,11 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
||||
return SizedBox(
|
||||
width: 24.rpx,
|
||||
height: 24.rpx,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
);
|
||||
}
|
||||
if (blueteethBindController.netType.value == 0) {
|
||||
@@ -181,10 +181,10 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
||||
width: 24.rpx,
|
||||
height: 24.rpx,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
);
|
||||
}
|
||||
if (blueteethBindController.wifiConnectStatus.value ==
|
||||
@@ -192,11 +192,11 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
||||
return SizedBox(
|
||||
width: 24.rpx,
|
||||
height: 24.rpx,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
);
|
||||
}
|
||||
return Container();
|
||||
@@ -640,13 +640,11 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
||||
width: 32.rpx,
|
||||
height: 32.rpx,
|
||||
child:
|
||||
CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<
|
||||
Color>(
|
||||
Colors.white),
|
||||
),
|
||||
CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
)
|
||||
else
|
||||
getWifiIconByRsso(
|
||||
|
||||
@@ -166,11 +166,11 @@ class _MHTWifiAfterPageState extends State<MHTWifiAfterPage> {
|
||||
return SizedBox(
|
||||
width: 24.rpx,
|
||||
height: 24.rpx,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
);
|
||||
}
|
||||
if (blueteethBindController.netType.value == 0) {
|
||||
@@ -178,10 +178,10 @@ class _MHTWifiAfterPageState extends State<MHTWifiAfterPage> {
|
||||
width: 24.rpx,
|
||||
height: 24.rpx,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
);
|
||||
}
|
||||
if (blueteethBindController.wifiConnectStatus.value ==
|
||||
@@ -190,10 +190,10 @@ class _MHTWifiAfterPageState extends State<MHTWifiAfterPage> {
|
||||
width: 24.rpx,
|
||||
height: 24.rpx,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
);
|
||||
}
|
||||
return Container();
|
||||
@@ -613,13 +613,11 @@ class _MHTWifiAfterPageState extends State<MHTWifiAfterPage> {
|
||||
width: 32.rpx,
|
||||
height: 32.rpx,
|
||||
child:
|
||||
CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<
|
||||
Color>(
|
||||
Colors.white),
|
||||
),
|
||||
CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
)
|
||||
else
|
||||
getWifiIconByRsso(
|
||||
|
||||
@@ -152,7 +152,7 @@ class _ExperienceStorePageState extends State<ExperienceStorePage> {
|
||||
return CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
);
|
||||
} else {
|
||||
return Container();
|
||||
|
||||
@@ -99,10 +99,11 @@ class _HelpArticleState extends State<HelpArticle> {
|
||||
Container(
|
||||
color: const Color(0xFF042C46),
|
||||
alignment: Alignment.center,
|
||||
child: const CircularProgressIndicator(
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -501,7 +501,11 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
|
||||
padding: EdgeInsets.fromLTRB(
|
||||
0, 30.rpx, 0, 0),
|
||||
child: Center(
|
||||
child: CircularProgressIndicator()),
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)),
|
||||
)
|
||||
: hasValidData
|
||||
? Column(
|
||||
|
||||
@@ -73,7 +73,11 @@ class IssueListPage extends GetView<IssueListController> {
|
||||
),
|
||||
child: Obx(() {
|
||||
if (controller.model.isLoading) {
|
||||
return Center(child: CircularProgressIndicator()); // ✅ 加载中
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)); // ✅ 加载中
|
||||
}
|
||||
|
||||
if (controller.model.issueList.isEmpty) {
|
||||
|
||||
@@ -94,7 +94,11 @@ class _PrivacyPolicyPageState extends State<PrivacyPolicyPage> {
|
||||
Expanded(
|
||||
child: Obx(() {
|
||||
if (pdfController.localPdfPath.value == null) {
|
||||
return Center(child: CircularProgressIndicator());
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
} else {
|
||||
return PDFView(
|
||||
filePath: pdfController.localPdfPath.value!,
|
||||
|
||||
@@ -565,7 +565,11 @@ class WebviewTestView extends GetComponent<WebviewTestController> {
|
||||
// return (controller.ready.value && (MainPageBBottomChange.getCurrentIndex() == 2))
|
||||
return (controller.ready.value)
|
||||
? controller.web.build()
|
||||
: Center(child: CircularProgressIndicator());
|
||||
: Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
}),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -98,7 +98,11 @@ class _UserAgreementPageState extends State<UserAgreementPage> {
|
||||
Expanded(
|
||||
child: Obx(() {
|
||||
if (pdfController.localPdfPath.value == null) {
|
||||
return Center(child: CircularProgressIndicator());
|
||||
return Center(child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
} else {
|
||||
return PDFView(
|
||||
filePath: pdfController.localPdfPath.value!,
|
||||
|
||||
@@ -114,7 +114,11 @@ class _PrivacyPolicyNewPageState extends State<PrivacyPolicyNewPage> {
|
||||
builder: (context, isLoading, child) {
|
||||
return isLoading
|
||||
? Center(
|
||||
child: CircularProgressIndicator(), // 加载指示器
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
), // 加载指示器
|
||||
)
|
||||
: SizedBox.shrink();
|
||||
},
|
||||
|
||||
@@ -109,7 +109,11 @@ class _UserPrivacyNewPageState extends State<UserPrivacyNewPage> {
|
||||
builder: (context, isLoading, child) {
|
||||
return isLoading
|
||||
? Center(
|
||||
child: CircularProgressIndicator(), // 加载指示器
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
), // 加载指示器
|
||||
)
|
||||
: SizedBox.shrink();
|
||||
},
|
||||
|
||||
@@ -87,7 +87,7 @@ class _ApplyRepairPageState extends State<ApplyRepairPage> {
|
||||
.map((e) => (e['_id']) as String)
|
||||
.toList();
|
||||
repairController.deviceListIdLabel = bodyDeviceController.deviceList
|
||||
.map((e) => (e['code']??e['mac']) as String)
|
||||
.map((e) => (e['code'] ?? e['mac']) as String)
|
||||
.toList();
|
||||
}
|
||||
return LayoutBuilder(
|
||||
|
||||
@@ -141,14 +141,7 @@ class _CompareSleepWidgetState extends State<CompareSleepWidget> {
|
||||
SizedBox(
|
||||
height: 31.rpx,
|
||||
),
|
||||
// Padding(
|
||||
// padding:
|
||||
// EdgeInsetsDirectional.fromSTEB(30.rpx, 0.rpx, 30.rpx, 0.rpx),
|
||||
// child: SleepRadarChart(
|
||||
// today: today,
|
||||
// yesterday: yesterday,
|
||||
// ),
|
||||
// ),
|
||||
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(0.rpx, 0.rpx, 30.rpx, 0.rpx),
|
||||
|
||||
@@ -555,7 +555,11 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
|
||||
),
|
||||
Obx(() {
|
||||
if (sleepReportController.isLoading.value) {
|
||||
return Center(child: CircularProgressIndicator());
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
}
|
||||
if (sleepReport == null || sleepReport.isEmpty) {
|
||||
// 空数据
|
||||
@@ -847,7 +851,11 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
|
||||
),
|
||||
Obx(() {
|
||||
if (sleepReportController.isLoading.value) {
|
||||
return Center(child: CircularProgressIndicator());
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
}
|
||||
switch (sleepReportController.model.type) {
|
||||
case 1:
|
||||
|
||||
@@ -104,7 +104,11 @@ class _SleepReportPageState extends State<SleepReportPage> {
|
||||
builder: (context, isLoading, child) {
|
||||
return isLoading
|
||||
? Center(
|
||||
child: CircularProgressIndicator(), // 加载指示器
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
), // 加载指示器
|
||||
)
|
||||
: SizedBox.shrink();
|
||||
},
|
||||
|
||||
@@ -93,7 +93,11 @@ class _PrivacySchemePageState extends State<PrivacySchemePage> {
|
||||
Expanded(
|
||||
child: Obx(() {
|
||||
if (pdfController.localPdfPath.value == null) {
|
||||
return Center(child: CircularProgressIndicator());
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
} else {
|
||||
return PDFView(
|
||||
filePath: pdfController.localPdfPath.value!,
|
||||
|
||||
@@ -98,7 +98,11 @@ class _UserSchemePageState extends State<UserSchemePage> {
|
||||
Expanded(
|
||||
child: Obx(() {
|
||||
if (pdfController.localPdfPath.value == null) {
|
||||
return Center(child: CircularProgressIndicator());
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
} else {
|
||||
return PDFView(
|
||||
filePath: pdfController.localPdfPath.value!,
|
||||
|
||||
@@ -104,7 +104,11 @@ class _XiaoEPageState extends State<XiaoEPage> {
|
||||
builder: (context, isLoading, child) {
|
||||
return isLoading
|
||||
? Center(
|
||||
child: CircularProgressIndicator(), // 加载指示器
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc1),
|
||||
), // 加载指示器
|
||||
)
|
||||
: SizedBox.shrink();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user