加载窗样式

This commit is contained in:
czz
2025-08-20 17:47:46 +08:00
parent 8b26c4b8fa
commit 4072541e7b
31 changed files with 161 additions and 129 deletions

View File

@@ -372,7 +372,7 @@
"型号:": "Model: ",
"序列号:": "SN: ",
"报修单号:": "Ticket: ",
"提交时间:": "Submitted: ",
"提交时间": "Submitted: ",
"问题描述:": "Issue: ",
"报修状态": "Repair Status",
"页面返回事件": "Page Back",

View File

@@ -372,7 +372,7 @@
"型号:": "型号: ",
"序列号:": "序列号: ",
"报修单号:": "报修单号: ",
"提交时间:": "提交时间: ",
"提交时间": "提交时间: ",
"问题描述:": "问题描述: ",
"报修状态": "报修状态",
"页面返回事件": "页面返回事件",

View File

@@ -372,7 +372,7 @@
"型号:": "型號: ",
"序列号:": "序列號: ",
"报修单号:": "報修單號: ",
"提交时间:": "提交時間: ",
"提交时间": "提交時間: ",
"问题描述:": "問題描述: ",
"报修状态": "報修狀態",
"页面返回事件": "頁面返回事件",

View File

@@ -531,7 +531,7 @@ class LoadingDialog {
CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc3,
themeController.currentColor.sc1,
),
),
],

View File

@@ -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();

View File

@@ -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

View File

@@ -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,),
),
);
}

View File

@@ -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

View File

@@ -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

View File

@@ -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,

View File

@@ -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();
},
),

View File

@@ -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();

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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();

View File

@@ -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),
)
),
],
),

View File

@@ -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(

View File

@@ -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) {

View File

@@ -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!,

View File

@@ -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),
));
}),
),
),

View File

@@ -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!,

View File

@@ -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();
},

View File

@@ -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();
},

View File

@@ -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(

View File

@@ -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),

View File

@@ -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:

View File

@@ -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();
},

View File

@@ -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!,

View File

@@ -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!,

View File

@@ -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();
},