加载窗样式
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user