加载窗样式

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

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

View File

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