加载窗样式

This commit is contained in:
czz
2025-08-20 18:22:10 +08:00
parent 2cbe9c2713
commit a69209db72
25 changed files with 244 additions and 127 deletions

View File

@@ -54,8 +54,8 @@ class AppConstants {
//系统参数 //系统参数
//运行打包APP模式 //运行打包APP模式
// int ent_type = APPPackageType.MHT.code; //1.默认太和 2.欢睡 3.眠花糖 int ent_type = APPPackageType.MHT.code; //1.默认太和 2.欢睡 3.眠花糖
int ent_type = APPPackageType.TH.code; //1.默认太和 2.欢睡 3.眠花糖 // int ent_type = APPPackageType.TH.code; //1.默认太和 2.欢睡 3.眠花糖
int text_length = 8; int text_length = 8;
} }

View File

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

View File

@@ -118,10 +118,11 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
return SizedBox( return SizedBox(
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child:CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -129,10 +130,11 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
return SizedBox( return SizedBox(
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child:CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -141,10 +143,11 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
return SizedBox( return SizedBox(
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child:CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -636,11 +639,10 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
height: 32.rpx, height: 32.rpx,
child: child:
CircularProgressIndicator( CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation< themeController.currentColor.sc1,
Color>( ),
Colors.white),
), ),
) )
else else

View File

@@ -152,10 +152,11 @@ class _SingleBlueteethDeviceCompoentWidgetState
return SizedBox( return SizedBox(
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child:CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -367,8 +368,10 @@ class _SingleBlueteethDeviceCompoentWidgetState
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child: CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(Colors.white), valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
), ),
); );
} }

View File

@@ -175,9 +175,10 @@ class _WifiPageState extends State<WifiPage> {
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child: CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>( valueColor: AlwaysStoppedAnimation<Color>(
Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -189,9 +190,10 @@ class _WifiPageState extends State<WifiPage> {
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child: CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>( valueColor: AlwaysStoppedAnimation<Color>(
Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -689,11 +691,14 @@ class _WifiPageState extends State<WifiPage> {
height: 32.rpx, height: 32.rpx,
child: child:
CircularProgressIndicator( CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor:
AlwaysStoppedAnimation< AlwaysStoppedAnimation<
Color>( Color>(
Colors.white), themeController
.currentColor
.sc1,
),
), ),
) )
else else

View File

@@ -119,9 +119,10 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child: CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -130,9 +131,10 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child: CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -142,9 +144,10 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child: CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -632,11 +635,14 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
height: 32.rpx, height: 32.rpx,
child: child:
CircularProgressIndicator( CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor:
AlwaysStoppedAnimation< AlwaysStoppedAnimation<
Color>( Color>(
Colors.white), themeController
.currentColor
.sc1,
),
), ),
) )
else else

View File

@@ -135,7 +135,12 @@ class _EPageState extends State<EPage> with AutomaticKeepAliveClientMixin {
Widget _buildLoggedInContent() { Widget _buildLoggedInContent() {
return Obx(() { return Obx(() {
if (finalUri.isEmpty) { if (finalUri.isEmpty) {
return Center(child: CircularProgressIndicator()); return Center(child: CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),);
} }
// 如果设备列表为空 // 如果设备列表为空
@@ -173,7 +178,12 @@ class _EPageState extends State<EPage> with AutomaticKeepAliveClientMixin {
valueListenable: isPageLoading, valueListenable: isPageLoading,
builder: (context, isLoading, child) { builder: (context, isLoading, child) {
return isLoading return isLoading
? Center(child: CircularProgressIndicator()) ? Center(child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),)
: SizedBox.shrink(); : SizedBox.shrink();
}, },
), ),

View File

@@ -78,10 +78,11 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
return SizedBox( return SizedBox(
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child:CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>( valueColor: AlwaysStoppedAnimation<Color>(
stringToColor("#929699")), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -387,9 +388,11 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
return SizedBox( return SizedBox(
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child:CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(Colors.white), valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
), ),
); );
} }

View File

@@ -140,7 +140,12 @@ class _MHTPeopleInfoPageState extends State<MHTPeopleInfoPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
if (isLoading) { if (isLoading) {
return Center(child: CircularProgressIndicator()); return Center(child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),);
} }
return LayoutBuilder( return LayoutBuilder(

View File

@@ -170,9 +170,10 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child: CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -181,9 +182,10 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child: CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -193,9 +195,10 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child: CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -641,11 +644,10 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
height: 32.rpx, height: 32.rpx,
child: child:
CircularProgressIndicator( CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation< themeController.currentColor.sc1,
Color>( ),
Colors.white),
), ),
) )
else else

View File

@@ -166,10 +166,11 @@ class _MHTWifiAfterPageState extends State<MHTWifiAfterPage> {
return SizedBox( return SizedBox(
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child:CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -177,10 +178,11 @@ class _MHTWifiAfterPageState extends State<MHTWifiAfterPage> {
return SizedBox( return SizedBox(
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child:CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -189,10 +191,11 @@ class _MHTWifiAfterPageState extends State<MHTWifiAfterPage> {
return SizedBox( return SizedBox(
width: 24.rpx, width: 24.rpx,
height: 24.rpx, height: 24.rpx,
child: CircularProgressIndicator( child:CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
), ),
); );
} }
@@ -614,11 +617,10 @@ class _MHTWifiAfterPageState extends State<MHTWifiAfterPage> {
height: 32.rpx, height: 32.rpx,
child: child:
CircularProgressIndicator( CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation< themeController.currentColor.sc1,
Color>( ),
Colors.white),
), ),
) )
else else

View File

@@ -150,9 +150,10 @@ class _ExperienceStorePageState extends State<ExperienceStorePage> {
if (controller.model.experienceStoreModelList.length == if (controller.model.experienceStoreModelList.length ==
0) { 0) {
return CircularProgressIndicator( return CircularProgressIndicator(
strokeWidth: 1, strokeWidth: 2,
valueColor: valueColor: AlwaysStoppedAnimation<Color>(
AlwaysStoppedAnimation<Color>(Colors.white), themeController.currentColor.sc1,
),
); );
} else { } else {
return Container(); return Container();

View File

@@ -99,9 +99,11 @@ class _HelpArticleState extends State<HelpArticle> {
Container( Container(
color: const Color(0xFF042C46), color: const Color(0xFF042C46),
alignment: Alignment.center, alignment: Alignment.center,
child: const CircularProgressIndicator( child: CircularProgressIndicator(
valueColor: strokeWidth: 2,
AlwaysStoppedAnimation<Color>(Colors.white), valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
), ),
), ),
], ],

View File

@@ -501,7 +501,12 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
padding: EdgeInsets.fromLTRB( padding: EdgeInsets.fromLTRB(
0, 30.rpx, 0, 0), 0, 30.rpx, 0, 0),
child: Center( child: Center(
child: CircularProgressIndicator()), child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),),
) )
: hasValidData : hasValidData
? Column( ? Column(

View File

@@ -580,7 +580,23 @@ class _NewHomePageState extends State<NewHomePage> {
if (homeController if (homeController
.homeSleepDays.value.length == .homeSleepDays.value.length ==
0) 0)
Expanded(child: NullDataWidget()), Expanded(
child: Center(
child: SizedBox(
width: 40.rpx, // 宽度
height: 40.rpx, // 高度
child: CircularProgressIndicator(
strokeWidth: 2,
valueColor:
AlwaysStoppedAnimation<
Color>(
themeController
.currentColor.sc1,
),
),
),
),
),
if (homeController if (homeController
.homeSleepDays.value.length != .homeSleepDays.value.length !=
0) 0)

View File

@@ -73,7 +73,12 @@ class IssueListPage extends GetView<IssueListController> {
), ),
child: Obx(() { child: Obx(() {
if (controller.model.isLoading) { if (controller.model.isLoading) {
return Center(child: CircularProgressIndicator()); // ✅ 加载中 return Center(child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),); // ✅ 加载中
} }
if (controller.model.issueList.isEmpty) { if (controller.model.issueList.isEmpty) {

View File

@@ -94,7 +94,12 @@ class _PrivacyPolicyPageState extends State<PrivacyPolicyPage> {
Expanded( Expanded(
child: Obx(() { child: Obx(() {
if (pdfController.localPdfPath.value == null) { if (pdfController.localPdfPath.value == null) {
return Center(child: CircularProgressIndicator()); return Center(child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),);
} else { } else {
return PDFView( return PDFView(
filePath: pdfController.localPdfPath.value!, filePath: pdfController.localPdfPath.value!,

View File

@@ -565,7 +565,12 @@ class WebviewTestView extends GetComponent<WebviewTestController> {
// return (controller.ready.value && (MainPageBBottomChange.getCurrentIndex() == 2)) // return (controller.ready.value && (MainPageBBottomChange.getCurrentIndex() == 2))
return (controller.ready.value) return (controller.ready.value)
? controller.web.build() ? controller.web.build()
: Center(child: CircularProgressIndicator()); : Center(child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),);
}), }),
), ),
), ),

View File

@@ -98,7 +98,12 @@ class _UserAgreementPageState extends State<UserAgreementPage> {
Expanded( Expanded(
child: Obx(() { child: Obx(() {
if (pdfController.localPdfPath.value == null) { if (pdfController.localPdfPath.value == null) {
return Center(child: CircularProgressIndicator()); return Center(child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),);
} else { } else {
return PDFView( return PDFView(
filePath: pdfController.localPdfPath.value!, filePath: pdfController.localPdfPath.value!,

View File

@@ -114,7 +114,12 @@ class _PrivacyPolicyNewPageState extends State<PrivacyPolicyNewPage> {
builder: (context, isLoading, child) { builder: (context, isLoading, child) {
return isLoading return isLoading
? Center( ? Center(
child: CircularProgressIndicator(), // 加载指示器 child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
), // 加载指示器
) )
: SizedBox.shrink(); : SizedBox.shrink();
}, },

View File

@@ -555,7 +555,12 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
), ),
Obx(() { Obx(() {
if (sleepReportController.isLoading.value) { if (sleepReportController.isLoading.value) {
return Center(child: CircularProgressIndicator()); return Center(child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),);
} }
if (sleepReport == null || sleepReport.isEmpty) { if (sleepReport == null || sleepReport.isEmpty) {
// 空数据 // 空数据
@@ -847,7 +852,12 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
), ),
Obx(() { Obx(() {
if (sleepReportController.isLoading.value) { if (sleepReportController.isLoading.value) {
return Center(child: CircularProgressIndicator()); return Center(child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),);
} }
switch (sleepReportController.model.type) { switch (sleepReportController.model.type) {
case 1: case 1:

View File

@@ -104,7 +104,12 @@ class _SleepReportPageState extends State<SleepReportPage> {
builder: (context, isLoading, child) { builder: (context, isLoading, child) {
return isLoading return isLoading
? Center( ? Center(
child: CircularProgressIndicator(), // 加载指示器 child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
), // 加载指示器
) )
: SizedBox.shrink(); : SizedBox.shrink();
}, },

View File

@@ -93,7 +93,12 @@ class _PrivacySchemePageState extends State<PrivacySchemePage> {
Expanded( Expanded(
child: Obx(() { child: Obx(() {
if (pdfController.localPdfPath.value == null) { if (pdfController.localPdfPath.value == null) {
return Center(child: CircularProgressIndicator()); return Center(child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),);
} else { } else {
return PDFView( return PDFView(
filePath: pdfController.localPdfPath.value!, filePath: pdfController.localPdfPath.value!,

View File

@@ -98,7 +98,12 @@ class _UserSchemePageState extends State<UserSchemePage> {
Expanded( Expanded(
child: Obx(() { child: Obx(() {
if (pdfController.localPdfPath.value == null) { if (pdfController.localPdfPath.value == null) {
return Center(child: CircularProgressIndicator()); return Center(child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),);
} else { } else {
return PDFView( return PDFView(
filePath: pdfController.localPdfPath.value!, filePath: pdfController.localPdfPath.value!,

View File

@@ -104,7 +104,12 @@ class _XiaoEPageState extends State<XiaoEPage> {
builder: (context, isLoading, child) { builder: (context, isLoading, child) {
return isLoading return isLoading
? Center( ? Center(
child: CircularProgressIndicator(), // 加载指示器 child: CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
), // 加载指示器
) )
: SizedBox.shrink(); : SizedBox.shrink();
}, },