加载窗样式

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

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