更新睡眠的心率基准图不显示
This commit is contained in:
@@ -62,133 +62,130 @@ class _ExperienceStorePageState extends State<ExperienceStorePage> {
|
||||
bodysize = cc;
|
||||
|
||||
return GestureDetector(
|
||||
onTap: () => FocusScope.of(context).unfocus(),
|
||||
// onTap: () => FocusScope.of(context).unfocus(),,
|
||||
child: Container(
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage('assets/images/new_background.png'), // 本地图片
|
||||
fit: BoxFit.fill, // 填满整个 Container
|
||||
),
|
||||
),
|
||||
child: Scaffold(
|
||||
// key: scaffoldKey,
|
||||
backgroundColor: Colors.transparent,
|
||||
appBar: AppBar(
|
||||
backgroundColor: Colors.transparent,
|
||||
automaticallyImplyLeading: false,
|
||||
iconTheme: IconThemeData(color: Colors.white),
|
||||
titleSpacing: 0,
|
||||
title: SizedBox(
|
||||
width: double.infinity,
|
||||
height: 180.rpx,
|
||||
child: Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
// 中间居中的标题
|
||||
Text(
|
||||
'预约体验',
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 30.rpx,
|
||||
),
|
||||
),
|
||||
// 左侧图标
|
||||
Positioned(
|
||||
left: 0.rpx,
|
||||
child: returnIconButtomNew,
|
||||
),
|
||||
Positioned(
|
||||
right: 30.rpx,
|
||||
child: ClickableContainer(
|
||||
backgroundColor: Colors.transparent,
|
||||
highlightColor: Color(0xFF055466),
|
||||
padding: EdgeInsets.only(left: 0),
|
||||
onTap: () {
|
||||
TopSlideNotification.show(context,
|
||||
text: "待开发功能".tr);
|
||||
// Get.toNamed("/myExperiencePage");
|
||||
},
|
||||
child: SvgPicture.asset(
|
||||
'assets/img/icon/history_store.svg',
|
||||
width: 35.rpx,
|
||||
height: 35.rpx,
|
||||
color: Colors.white,
|
||||
)))
|
||||
],
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage('assets/images/new_background.png'), // 本地图片
|
||||
fit: BoxFit.fill, // 填满整个 Container
|
||||
),
|
||||
),
|
||||
child: Scaffold(
|
||||
// key: scaffoldKey,
|
||||
backgroundColor: Colors.transparent,
|
||||
appBar: AppBar(
|
||||
backgroundColor: Colors.transparent,
|
||||
automaticallyImplyLeading: false,
|
||||
iconTheme: IconThemeData(color: Colors.white),
|
||||
titleSpacing: 0,
|
||||
title: SizedBox(
|
||||
width: double.infinity,
|
||||
height: 180.rpx,
|
||||
child: Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
// 中间居中的标题
|
||||
Text(
|
||||
'预约体验',
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 30.rpx,
|
||||
),
|
||||
),
|
||||
),
|
||||
centerTitle: false,
|
||||
// 左侧图标
|
||||
Positioned(
|
||||
left: 0.rpx,
|
||||
child: returnIconButtomNew,
|
||||
),
|
||||
Positioned(
|
||||
right: 30.rpx,
|
||||
child: ClickableContainer(
|
||||
backgroundColor: Colors.transparent,
|
||||
highlightColor: Color(0xFF055466),
|
||||
padding: EdgeInsets.only(left: 0),
|
||||
onTap: () {
|
||||
TopSlideNotification.show(context,
|
||||
text: "待开发功能".tr);
|
||||
// Get.toNamed("/myExperiencePage");
|
||||
},
|
||||
child: SvgPicture.asset(
|
||||
'assets/img/icon/history_store.svg',
|
||||
width: 35.rpx,
|
||||
height: 35.rpx,
|
||||
color: Colors.white,
|
||||
)))
|
||||
],
|
||||
),
|
||||
body: SingleChildScrollView(
|
||||
child: Container(
|
||||
width: bodysize!.maxWidth,
|
||||
height: bodysize!.maxHeight * 1,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
//todo
|
||||
),
|
||||
centerTitle: false,
|
||||
),
|
||||
body: SingleChildScrollView(
|
||||
child: Container(
|
||||
width: bodysize!.maxWidth,
|
||||
height: bodysize!.maxHeight * 1,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
//todo
|
||||
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
0, 40.rpx, 0, 38.rpx),
|
||||
child: SearchWidget(
|
||||
keyword: controller.model.keyword,
|
||||
color: controller.model.color,
|
||||
hint: "请输入门店名称",
|
||||
onChange: (d) {
|
||||
controller.model.keyword = d;
|
||||
},
|
||||
findCallback: () {
|
||||
// controller.page = 0;
|
||||
// controller.getData();
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Obx(() {
|
||||
if (controller
|
||||
.model.experienceStoreModelList.length ==
|
||||
0) {
|
||||
return CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
);
|
||||
} else {
|
||||
return Container();
|
||||
}
|
||||
}),
|
||||
|
||||
Expanded(
|
||||
child: Obx(() => ListView(
|
||||
controller: scrollController,
|
||||
shrinkWrap: true,
|
||||
scrollDirection: Axis.vertical,
|
||||
children: List.generate(
|
||||
controller
|
||||
.model
|
||||
.experienceStoreModelList
|
||||
.length, (index) {
|
||||
return ExperienceStoreWidget(
|
||||
index: index,
|
||||
data: controller.model
|
||||
.experienceStoreModelList[index]);
|
||||
})
|
||||
.divide(const SizedBox(
|
||||
height: 25,
|
||||
))
|
||||
.addToStart(SizedBox(
|
||||
height: AppConstants.list_start_height,
|
||||
))
|
||||
.addToEnd(SizedBox(
|
||||
height: AppConstants.list_ano_end_height,
|
||||
))))),
|
||||
],
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 40.rpx, 0, 38.rpx),
|
||||
child: SearchWidget(
|
||||
keyword: controller.model.keyword,
|
||||
color: controller.model.color,
|
||||
hint: "请输入门店名称",
|
||||
onChange: (d) {
|
||||
controller.model.keyword = d;
|
||||
},
|
||||
findCallback: () {
|
||||
// controller.page = 0;
|
||||
// controller.getData();
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
)),
|
||||
));
|
||||
|
||||
Obx(() {
|
||||
if (controller.model.experienceStoreModelList.length ==
|
||||
0) {
|
||||
return CircularProgressIndicator(
|
||||
strokeWidth: 1,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(Colors.white),
|
||||
);
|
||||
} else {
|
||||
return Container();
|
||||
}
|
||||
}),
|
||||
|
||||
Expanded(
|
||||
child: Obx(() => ListView(
|
||||
controller: scrollController,
|
||||
shrinkWrap: true,
|
||||
scrollDirection: Axis.vertical,
|
||||
children: List.generate(
|
||||
controller.model.experienceStoreModelList
|
||||
.length, (index) {
|
||||
return ExperienceStoreWidget(
|
||||
index: index,
|
||||
data: controller
|
||||
.model.experienceStoreModelList[index]);
|
||||
})
|
||||
.divide(const SizedBox(
|
||||
height: 25,
|
||||
))
|
||||
.addToStart(SizedBox(
|
||||
height: AppConstants.list_start_height,
|
||||
))
|
||||
.addToEnd(SizedBox(
|
||||
height: AppConstants.list_ano_end_height,
|
||||
))))),
|
||||
],
|
||||
),
|
||||
),
|
||||
)),
|
||||
));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user