加载窗样式
This commit is contained in:
@@ -372,7 +372,7 @@
|
||||
"型号:": "Model: ",
|
||||
"序列号:": "SN: ",
|
||||
"报修单号:": "Ticket: ",
|
||||
"提交时间:": "Submitted: ",
|
||||
"提交时间:": "Submitted: ",
|
||||
"问题描述:": "Issue: ",
|
||||
"报修状态": "Repair Status",
|
||||
"页面返回事件": "Page Back",
|
||||
|
||||
@@ -372,7 +372,7 @@
|
||||
"型号:": "型号: ",
|
||||
"序列号:": "序列号: ",
|
||||
"报修单号:": "报修单号: ",
|
||||
"提交时间:": "提交时间: ",
|
||||
"提交时间:": "提交时间: ",
|
||||
"问题描述:": "问题描述: ",
|
||||
"报修状态": "报修状态",
|
||||
"页面返回事件": "页面返回事件",
|
||||
|
||||
@@ -372,7 +372,7 @@
|
||||
"型号:": "型號: ",
|
||||
"序列号:": "序列號: ",
|
||||
"报修单号:": "報修單號: ",
|
||||
"提交时间:": "提交時間: ",
|
||||
"提交时间:": "提交時間: ",
|
||||
"问题描述:": "問題描述: ",
|
||||
"报修状态": "報修狀態",
|
||||
"页面返回事件": "頁面返回事件",
|
||||
|
||||
@@ -531,7 +531,7 @@ class LoadingDialog {
|
||||
CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc1,
|
||||
themeController.currentColor.sc3,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -121,7 +121,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -132,7 +132,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -144,7 +144,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -640,7 +640,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<
|
||||
Color>(
|
||||
themeController.currentColor.sc1,),
|
||||
Colors.white),
|
||||
),
|
||||
)
|
||||
else
|
||||
|
||||
@@ -155,7 +155,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -368,7 +368,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
||||
height: 24.rpx,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
valueColor: AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ class _WifiPageState extends State<WifiPage> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc1,),
|
||||
Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -191,7 +191,7 @@ class _WifiPageState extends State<WifiPage> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc1,),
|
||||
Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -693,7 +693,7 @@ class _WifiPageState extends State<WifiPage> {
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<
|
||||
Color>(
|
||||
themeController.currentColor.sc1,),
|
||||
Colors.white),
|
||||
),
|
||||
)
|
||||
else
|
||||
|
||||
@@ -120,9 +120,8 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
||||
height: 24.rpx,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc1,
|
||||
),
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -133,7 +132,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -145,7 +144,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>( themeController.currentColor.sc1,),
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -637,7 +636,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<
|
||||
Color>(
|
||||
themeController.currentColor.sc1,),
|
||||
Colors.white),
|
||||
),
|
||||
)
|
||||
else
|
||||
|
||||
@@ -169,7 +169,7 @@ class _MessageWidgetWidgetState extends State<MessageWidgetWidget> {
|
||||
child: Text(
|
||||
label.tr,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 2,
|
||||
maxLines: 1,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
@@ -184,13 +184,15 @@ class _MessageWidgetWidgetState extends State<MessageWidgetWidget> {
|
||||
|
||||
Widget _buildValueItem(BuildContext context, value) {
|
||||
return Container(
|
||||
constraints: BoxConstraints(minHeight: 60.rpx, maxHeight: 60.rpx),
|
||||
constraints: BoxConstraints(
|
||||
minHeight: 62.rpx,
|
||||
),
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(-1, 0),
|
||||
child: Text(
|
||||
"${value}",
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 2,
|
||||
maxLines: 1,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
|
||||
@@ -135,13 +135,7 @@ class _EPageState extends State<EPage> with AutomaticKeepAliveClientMixin {
|
||||
Widget _buildLoggedInContent() {
|
||||
return Obx(() {
|
||||
if (finalUri.isEmpty) {
|
||||
return Center(
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc1,
|
||||
),
|
||||
));
|
||||
return Center(child: CircularProgressIndicator());
|
||||
}
|
||||
|
||||
// 如果设备列表为空
|
||||
@@ -179,13 +173,7 @@ class _EPageState extends State<EPage> with AutomaticKeepAliveClientMixin {
|
||||
valueListenable: isPageLoading,
|
||||
builder: (context, isLoading, child) {
|
||||
return isLoading
|
||||
? Center(
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc1,
|
||||
),
|
||||
))
|
||||
? Center(child: CircularProgressIndicator())
|
||||
: 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>(themeController.currentColor.sc1),
|
||||
)
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
stringToColor("#929699")),
|
||||
),
|
||||
);
|
||||
}
|
||||
return Container();
|
||||
@@ -387,11 +387,10 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
|
||||
return SizedBox(
|
||||
width: 24.rpx,
|
||||
height: 24.rpx,
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
return Container();
|
||||
|
||||
@@ -140,11 +140,7 @@ class _MHTPeopleInfoPageState extends State<MHTPeopleInfoPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (isLoading) {
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
return Center(child: CircularProgressIndicator());
|
||||
}
|
||||
|
||||
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>(themeController.currentColor.sc1),
|
||||
)
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
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>(themeController.currentColor.sc1),
|
||||
)
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
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>(themeController.currentColor.sc1),
|
||||
)
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
return Container();
|
||||
@@ -640,11 +640,13 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
||||
width: 32.rpx,
|
||||
height: 32.rpx,
|
||||
child:
|
||||
CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<
|
||||
Color>(
|
||||
Colors.white),
|
||||
),
|
||||
)
|
||||
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>(themeController.currentColor.sc1),
|
||||
)
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
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>(themeController.currentColor.sc1),
|
||||
)
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
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>(themeController.currentColor.sc1),
|
||||
)
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
);
|
||||
}
|
||||
return Container();
|
||||
@@ -613,11 +613,13 @@ class _MHTWifiAfterPageState extends State<MHTWifiAfterPage> {
|
||||
width: 32.rpx,
|
||||
height: 32.rpx,
|
||||
child:
|
||||
CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<
|
||||
Color>(
|
||||
Colors.white),
|
||||
),
|
||||
)
|
||||
else
|
||||
getWifiIconByRsso(
|
||||
|
||||
@@ -152,7 +152,7 @@ class _ExperienceStorePageState extends State<ExperienceStorePage> {
|
||||
return CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
);
|
||||
} else {
|
||||
return Container();
|
||||
|
||||
@@ -99,11 +99,10 @@ class _HelpArticleState extends State<HelpArticle> {
|
||||
Container(
|
||||
color: const Color(0xFF042C46),
|
||||
alignment: Alignment.center,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)
|
||||
child: const CircularProgressIndicator(
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -501,11 +501,7 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
|
||||
padding: EdgeInsets.fromLTRB(
|
||||
0, 30.rpx, 0, 0),
|
||||
child: Center(
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)),
|
||||
child: CircularProgressIndicator()),
|
||||
)
|
||||
: hasValidData
|
||||
? Column(
|
||||
|
||||
@@ -73,11 +73,7 @@ class IssueListPage extends GetView<IssueListController> {
|
||||
),
|
||||
child: Obx(() {
|
||||
if (controller.model.isLoading) {
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
)); // ✅ 加载中
|
||||
return Center(child: CircularProgressIndicator()); // ✅ 加载中
|
||||
}
|
||||
|
||||
if (controller.model.issueList.isEmpty) {
|
||||
|
||||
@@ -94,11 +94,7 @@ class _PrivacyPolicyPageState extends State<PrivacyPolicyPage> {
|
||||
Expanded(
|
||||
child: Obx(() {
|
||||
if (pdfController.localPdfPath.value == null) {
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
return Center(child: CircularProgressIndicator());
|
||||
} else {
|
||||
return PDFView(
|
||||
filePath: pdfController.localPdfPath.value!,
|
||||
|
||||
@@ -565,11 +565,7 @@ class WebviewTestView extends GetComponent<WebviewTestController> {
|
||||
// return (controller.ready.value && (MainPageBBottomChange.getCurrentIndex() == 2))
|
||||
return (controller.ready.value)
|
||||
? controller.web.build()
|
||||
: Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
: Center(child: CircularProgressIndicator());
|
||||
}),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -98,11 +98,7 @@ class _UserAgreementPageState extends State<UserAgreementPage> {
|
||||
Expanded(
|
||||
child: Obx(() {
|
||||
if (pdfController.localPdfPath.value == null) {
|
||||
return Center(child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
return Center(child: CircularProgressIndicator());
|
||||
} else {
|
||||
return PDFView(
|
||||
filePath: pdfController.localPdfPath.value!,
|
||||
|
||||
@@ -114,11 +114,7 @@ class _PrivacyPolicyNewPageState extends State<PrivacyPolicyNewPage> {
|
||||
builder: (context, isLoading, child) {
|
||||
return isLoading
|
||||
? Center(
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
), // 加载指示器
|
||||
child: CircularProgressIndicator(), // 加载指示器
|
||||
)
|
||||
: SizedBox.shrink();
|
||||
},
|
||||
|
||||
@@ -109,11 +109,7 @@ class _UserPrivacyNewPageState extends State<UserPrivacyNewPage> {
|
||||
builder: (context, isLoading, child) {
|
||||
return isLoading
|
||||
? Center(
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
), // 加载指示器
|
||||
child: CircularProgressIndicator(), // 加载指示器
|
||||
)
|
||||
: 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,7 +141,14 @@ 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,11 +555,7 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
|
||||
),
|
||||
Obx(() {
|
||||
if (sleepReportController.isLoading.value) {
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
return Center(child: CircularProgressIndicator());
|
||||
}
|
||||
if (sleepReport == null || sleepReport.isEmpty) {
|
||||
// 空数据
|
||||
@@ -851,11 +847,7 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
|
||||
),
|
||||
Obx(() {
|
||||
if (sleepReportController.isLoading.value) {
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
return Center(child: CircularProgressIndicator());
|
||||
}
|
||||
switch (sleepReportController.model.type) {
|
||||
case 1:
|
||||
|
||||
@@ -104,11 +104,7 @@ class _SleepReportPageState extends State<SleepReportPage> {
|
||||
builder: (context, isLoading, child) {
|
||||
return isLoading
|
||||
? Center(
|
||||
child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
), // 加载指示器
|
||||
child: CircularProgressIndicator(), // 加载指示器
|
||||
)
|
||||
: SizedBox.shrink();
|
||||
},
|
||||
|
||||
@@ -93,11 +93,7 @@ class _PrivacySchemePageState extends State<PrivacySchemePage> {
|
||||
Expanded(
|
||||
child: Obx(() {
|
||||
if (pdfController.localPdfPath.value == null) {
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
return Center(child: CircularProgressIndicator());
|
||||
} else {
|
||||
return PDFView(
|
||||
filePath: pdfController.localPdfPath.value!,
|
||||
|
||||
@@ -98,11 +98,7 @@ class _UserSchemePageState extends State<UserSchemePage> {
|
||||
Expanded(
|
||||
child: Obx(() {
|
||||
if (pdfController.localPdfPath.value == null) {
|
||||
return Center(child:CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(themeController.currentColor.sc1),
|
||||
));
|
||||
return Center(child: CircularProgressIndicator());
|
||||
} else {
|
||||
return PDFView(
|
||||
filePath: pdfController.localPdfPath.value!,
|
||||
|
||||
@@ -104,11 +104,7 @@ class _XiaoEPageState extends State<XiaoEPage> {
|
||||
builder: (context, isLoading, child) {
|
||||
return isLoading
|
||||
? Center(
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc1),
|
||||
), // 加载指示器
|
||||
child: CircularProgressIndicator(), // 加载指示器
|
||||
)
|
||||
: SizedBox.shrink();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user