更新睡眠的心率基准图不显示

This commit is contained in:
wyf
2025-07-17 10:06:13 +08:00
parent 80d6670ad9
commit f8cecba68b
95 changed files with 8859 additions and 9047 deletions

View File

@@ -24,203 +24,202 @@ class BookSuccessPage extends GetView {
return LayoutBuilder(builder: (context, cc) {
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
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,
// leading: returnIconButtomAddCallback(() {
// controller.saveDataApi();
// updateParm(isShowToast: false);
// }),
// leading: returnIconButtomNew,
title: Container(
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,
),
],
),
),
child: Scaffold(
// key: scaffoldKey,
backgroundColor: Colors.transparent,
appBar: AppBar(
backgroundColor: Colors.transparent,
automaticallyImplyLeading: false,
iconTheme: IconThemeData(color: Colors.white),
titleSpacing: 0,
// leading: returnIconButtomAddCallback(() {
// controller.saveDataApi();
// updateParm(isShowToast: false);
// }),
// leading: returnIconButtomNew,
title: Container(
width: double.infinity,
height: 180.rpx,
child: Stack(
alignment: Alignment.center,
actions: [],
centerTitle: false,
),
body: Container(
width: bodysize!.maxWidth,
height: bodysize!.maxHeight * 1,
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Container(
width: bodysize!.maxWidth,
margin: EdgeInsets.only(top: 90.rpx),
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
// 中间居中的标题
Text(
'我要预约',
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white,
fontSize: 30.rpx,
Container(
width: 148.rpx,
height: 148.rpx,
clipBehavior: Clip.antiAlias,
decoration: const BoxDecoration(
shape: BoxShape.circle,
),
child: Image.asset(
'assets/images/success.png',
fit: BoxFit.contain,
color: Color(0xFF84F5FF),
),
),
// 左侧图标
Positioned(
left: 0.rpx,
child: returnIconButtomNew,
Align(
alignment: const AlignmentDirectional(0, 0),
child: Text(
'预约成功!',
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
color: Colors.white,
letterSpacing: 0,
fontWeight: FontWeight.w600,
),
),
),
],
].divide(SizedBox(height: 30.rpx)),
),
),
actions: [],
centerTitle: false,
),
body: Container(
width: bodysize!.maxWidth,
height: bodysize!.maxHeight * 1,
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Container(
width: bodysize!.maxWidth,
margin: EdgeInsets.only(top: 90.rpx),
Container(
margin:
EdgeInsets.only(left: 30.rpx, right: 30.rpx, top: 55.rpx),
width: bodysize!.maxWidth,
decoration: BoxDecoration(
color: Color(0xFF003058),
borderRadius: BorderRadius.circular(16.rpx),
),
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Container(
width: 148.rpx,
height: 148.rpx,
clipBehavior: Clip.antiAlias,
decoration: const BoxDecoration(
shape: BoxShape.circle,
),
child: Image.asset(
'assets/images/success.png',
fit: BoxFit.contain,
color: Color(0xFF84F5FF),
),
),
Align(
alignment: const AlignmentDirectional(0, 0),
child: Text(
'预约成功!',
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
color: Colors.white,
letterSpacing: 0,
fontWeight: FontWeight.w600,
),
),
),
].divide(SizedBox(height: 30.rpx)),
),
),
Container(
margin: EdgeInsets.only(
left: 30.rpx, right: 30.rpx, top: 55.rpx),
width: bodysize!.maxWidth,
decoration: BoxDecoration(
color: Color(0xFF003058),
borderRadius: BorderRadius.circular(16.rpx),
),
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20), // 上间距
for (var item in infoList)
Container(
height: 60.rpx,
padding:
EdgeInsets.symmetric(horizontal: 35.rpx),
alignment: Alignment.centerLeft,
child: Row(
children: [
Text(
item['label']!,
style: TextStyle(
color: Color(0XFF929699),
fontSize: 26.rpx,
),
),
SizedBox(width: 30.rpx),
Text(
item['value']!,
style: TextStyle(
color: Colors.white,
fontSize: 26.rpx,
),
),
],
)),
SizedBox(height: 60.rpx), // 空间隔断
Padding(
padding: EdgeInsets.symmetric(horizontal: 35),
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 20), // 上间距
for (var item in infoList)
Container(
height: 60.rpx,
padding: EdgeInsets.symmetric(horizontal: 35.rpx),
alignment: Alignment.centerLeft,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
width: 200.rpx,
height: 60.rpx,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Color(0xFF84F5FF),
padding: EdgeInsets.zero, // 去除文字内边距
tapTargetSize: MaterialTapTargetSize
.shrinkWrap, // 去除额外点击区域
// shape:
// RoundedRectangleBorder(), // 可选:去除默认圆角
),
onPressed: () {},
child: Center(
// 保证文字居中
child: Text(
"关闭",
style: TextStyle(
color: Color(0XFF011D33),
fontSize: 26.rpx,
),
),
),
)),
SizedBox(width: 60.rpx),
SizedBox(
width: 200.rpx,
height: 60.rpx,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Color(0xFF84F5FF),
padding: EdgeInsets.zero, // 去除文字内边距
tapTargetSize: MaterialTapTargetSize
.shrinkWrap, // 去除额外点击区域
// shape:
// RoundedRectangleBorder(), // 可选:去除默认圆角
),
onPressed: () {},
child: Center(
// 保证文字居中
child: Text(
"我的预约",
style: TextStyle(
color: Color(0XFF011D33),
fontSize: 26.rpx,
),
),
),
))
Text(
item['label']!,
style: TextStyle(
color: Color(0XFF929699),
fontSize: 26.rpx,
),
),
SizedBox(width: 30.rpx),
Text(
item['value']!,
style: TextStyle(
color: Colors.white,
fontSize: 26.rpx,
),
),
],
),
),
)),
SizedBox(height: 80.rpx), // 下间距
],
)),
),
],
SizedBox(height: 60.rpx), // 空间隔断
Padding(
padding: EdgeInsets.symmetric(horizontal: 35),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
width: 200.rpx,
height: 60.rpx,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Color(0xFF84F5FF),
padding: EdgeInsets.zero, // 去除文字内边距
tapTargetSize: MaterialTapTargetSize
.shrinkWrap, // 去除额外点击区域
// shape:
// RoundedRectangleBorder(), // 可选:去除默认圆角
),
onPressed: () {},
child: Center(
// 保证文字居中
child: Text(
"关闭",
style: TextStyle(
color: Color(0XFF011D33),
fontSize: 26.rpx,
),
),
),
)),
SizedBox(width: 60.rpx),
SizedBox(
width: 200.rpx,
height: 60.rpx,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Color(0xFF84F5FF),
padding: EdgeInsets.zero, // 去除文字内边距
tapTargetSize: MaterialTapTargetSize
.shrinkWrap, // 去除额外点击区域
// shape:
// RoundedRectangleBorder(), // 可选:去除默认圆角
),
onPressed: () {},
child: Center(
// 保证文字居中
child: Text(
"我的预约",
style: TextStyle(
color: Color(0XFF011D33),
fontSize: 26.rpx,
),
),
),
))
],
),
),
SizedBox(height: 80.rpx), // 下间距
],
)),
),
),
],
),
));
),
),
));
});
}
}