Commit 797d12e9 authored by 张宏's avatar 张宏

6666

parent c9959b5c
...@@ -152,7 +152,7 @@ class _MyAppState extends State<MyApp> { ...@@ -152,7 +152,7 @@ class _MyAppState extends State<MyApp> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ScreenUtilInit( return ScreenUtilInit(
designSize: Size(1024, 1366), designSize: Size(1920, 1199),
builder: (context, child) { builder: (context, child) {
return MultiBlocProvider( return MultiBlocProvider(
providers: [ providers: [
......
...@@ -125,28 +125,29 @@ class _MonitoringIndexContentState extends State<MonitoringIndexContent> { ...@@ -125,28 +125,29 @@ class _MonitoringIndexContentState extends State<MonitoringIndexContent> {
return Row( return Row(
children: [ children: [
Expanded( Expanded(
flex: 20, flex: 26,
child: MonitoringPetInfoCard(patientInfo: state.patientInfo), child: MonitoringPetInfoCard(patientInfo: state.patientInfo),
), ),
// SizedBox(width: gap), // SizedBox(width: gap),
Expanded( Expanded(
flex: 40, flex: 74,
child: Column( child: Column(
children: [ children: [
Expanded( Expanded(
flex: 32, flex: 32,
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Expanded( Expanded(
flex: 4, flex: 4,
child: _buildMetrics(state.metrics, gap), child: _buildMetrics(state.metrics, gap), // 4个监控
), ),
// SizedBox(width: gap), // SizedBox(width: gap),
], ],
), ),
), ),
SizedBox(height: gap), SizedBox(height: 24.h),
Expanded( Expanded(
flex: 34, flex: 34,
child: Row( child: Row(
...@@ -183,19 +184,24 @@ class _MonitoringIndexContentState extends State<MonitoringIndexContent> { ...@@ -183,19 +184,24 @@ class _MonitoringIndexContentState extends State<MonitoringIndexContent> {
Widget _buildMetrics(List<MonitoringMetricBO> metrics, double gap) { Widget _buildMetrics(List<MonitoringMetricBO> metrics, double gap) {
final displayMetrics = _environmentMetrics(metrics); final displayMetrics = _environmentMetrics(metrics);
return Row( final children = <Widget>[];
children: displayMetrics for (int i = 0; i < displayMetrics.length; i++) {
.map( children.add(
(metric) => Expanded( Expanded(
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
// border: BoxBorder.all(width: 1.w,color: Colors.red) // border: BoxBorder.all(width: 1.w, color: Colors.red),
),
child: MonitoringMetricCard(metric: metric),
),
), ),
) child: MonitoringMetricCard(metric: displayMetrics[i]),
.toList(), ),
),
);
if (i < displayMetrics.length - 1) {
children.add(SizedBox(width: 20.w));
}
}
return Row(
children: children,
); );
} }
......
...@@ -24,22 +24,21 @@ class MonitoringMetricCard extends StatelessWidget { ...@@ -24,22 +24,21 @@ class MonitoringMetricCard extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final displayLabel = _displayLabel(metric.label); final displayLabel = _displayLabel(metric.label);
return Container( return Container(
decoration: const BoxDecoration( decoration: BoxDecoration(
image: DecorationImage( image: DecorationImage(
image: AssetImage('lib/assets/monitoring/box_bg_325x372.png'), image: AssetImage('lib/assets/monitoring/box_bg_325x372.png'),
fit: BoxFit.cover, fit: BoxFit.fill,
), ),
// border: BoxBorder.all(width: 1.w,color: Colors.red)
), ),
// padding: EdgeInsets.zero, padding: EdgeInsets.only(left: 10.w,right: 10.w, top: 54.h),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
SizedBox(height: 60.h,),
Row( Row(
children: [ children: [
SizedBox(width: 32.w),
SizedBox(width: 20.w),
Expanded( Expanded(
flex: 3, flex: 3,
child: Text( child: Text(
...@@ -48,7 +47,7 @@ class MonitoringMetricCard extends StatelessWidget { ...@@ -48,7 +47,7 @@ class MonitoringMetricCard extends StatelessWidget {
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 18.sp, fontSize: 28.sp,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
), ),
...@@ -58,14 +57,14 @@ class MonitoringMetricCard extends StatelessWidget { ...@@ -58,14 +57,14 @@ class MonitoringMetricCard extends StatelessWidget {
child: Align( child: Align(
alignment: Alignment.topLeft, alignment: Alignment.topLeft,
child: FlutterSwitch( child: FlutterSwitch(
width: 30.w, width: 60.w,
height: 30.h, height: 30.h,
value: switchValue, value: switchValue,
onToggle: onSwitchToggle ?? (_) {}, onToggle: onSwitchToggle ?? (_) {},
activeColor: const Color(0xFF75C1DD), activeColor: const Color(0xFF75C1DD),
inactiveColor: Color(0xFF0A1B34), inactiveColor: Color(0xFF0A1B34),
toggleSize: 12.w, toggleSize: 22.w,
padding: 2.w, padding: 4.w,
), ),
), ),
), ),
...@@ -73,7 +72,7 @@ class MonitoringMetricCard extends StatelessWidget { ...@@ -73,7 +72,7 @@ class MonitoringMetricCard extends StatelessWidget {
), ),
// const Spacer(), // const Spacer(),
Container( Container(
padding: EdgeInsets.only(left: 20.w,top: 40.h), padding: EdgeInsets.only(left: 32.w,top: 24.h),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,
children: [ children: [
...@@ -81,19 +80,19 @@ class MonitoringMetricCard extends StatelessWidget { ...@@ -81,19 +80,19 @@ class MonitoringMetricCard extends StatelessWidget {
metric.value, metric.value,
style: TextStyle( style: TextStyle(
color: const Color(0xFF9DF5FF), color: const Color(0xFF9DF5FF),
fontSize: 36.sp, fontSize: 90.sp,
height: 1, height: 1,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
), ),
SizedBox(width: 6.w), SizedBox(width: 18.w),
Padding( Padding(
padding: EdgeInsets.only(bottom: 3.h), padding: EdgeInsets.only(bottom: 3.h),
child: Text( child: Text(
metric.unit, metric.unit,
style: TextStyle( style: TextStyle(
color: Colors.white70, color: Colors.white,
fontSize: 18.sp, fontSize: 30.sp,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
), ),
), ),
...@@ -102,10 +101,10 @@ class MonitoringMetricCard extends StatelessWidget { ...@@ -102,10 +101,10 @@ class MonitoringMetricCard extends StatelessWidget {
), ),
), ),
SizedBox(height: 12.h), SizedBox(height: 22.h),
Container( Container(
width: 100.w, width: 220.w,
margin: EdgeInsets.only(left: 20.w), margin: EdgeInsets.only(left: 32.w,),
decoration: BoxDecoration( decoration: BoxDecoration(
// border: Border.all( // border: Border.all(
// color: Colors.red, // color: Colors.red,
...@@ -122,12 +121,12 @@ class MonitoringMetricCard extends StatelessWidget { ...@@ -122,12 +121,12 @@ class MonitoringMetricCard extends StatelessWidget {
"设定24"+metric.unit, "设定24"+metric.unit,
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 14.sp, fontSize: 24.sp,
), ),
), ),
Container( Container(
height: 5.h, height: 5.h,
margin: EdgeInsets.only(top: 15.h), margin: EdgeInsets.only(top: 18.h),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(3.r), borderRadius: BorderRadius.circular(3.r),
gradient: const LinearGradient( gradient: const LinearGradient(
...@@ -138,12 +137,12 @@ class MonitoringMetricCard extends StatelessWidget { ...@@ -138,12 +137,12 @@ class MonitoringMetricCard extends StatelessWidget {
], ],
), ),
Positioned( Positioned(
right: -45.w, right: -65.w,
top: -40.h, top: -20.h,
child: Image.asset( child: Image.asset(
_iconAsset(metric.label), _iconAsset(metric.label),
width: 60.w, width: 102.w,
height: 60.w, height: 102.w,
fit: BoxFit.contain, fit: BoxFit.contain,
), ),
), ),
...@@ -151,10 +150,10 @@ class MonitoringMetricCard extends StatelessWidget { ...@@ -151,10 +150,10 @@ class MonitoringMetricCard extends StatelessWidget {
), ),
), ),
Container( Container(
margin: EdgeInsets.only(left: 14), margin: EdgeInsets.only(left: 2.w),
child: Image.asset( child: Image.asset(
'lib/assets/monitoring/box_bottom_char.png', 'lib/assets/monitoring/box_bottom_char.png',
width: 140.w, // width: 140.w,
// height: 60.w, // height: 60.w,
fit: BoxFit.contain, fit: BoxFit.contain,
), ),
......
...@@ -14,9 +14,12 @@ class MonitoringPetInfoCard extends StatelessWidget { ...@@ -14,9 +14,12 @@ class MonitoringPetInfoCard extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MonitoringPanel( return Container(
backgroundAsset: 'lib/assets/monitoring/box_bg_460x905.png', decoration: BoxDecoration(
padding: EdgeInsets.symmetric(horizontal: 28.w, vertical: 32.h), image: DecorationImage(image: AssetImage('lib/assets/monitoring/box_bg_460x905.png'),fit: BoxFit.fill),
border: Border.all(color: Colors.red,width: 1.w)
),
padding: EdgeInsets.only(left: 40.w,right: 40.w, top: 32.h),
child: patientInfo == null ? _buildEmpty() : _buildContent(patientInfo!), child: patientInfo == null ? _buildEmpty() : _buildContent(patientInfo!),
); );
} }
...@@ -37,9 +40,9 @@ class MonitoringPetInfoCard extends StatelessWidget { ...@@ -37,9 +40,9 @@ class MonitoringPetInfoCard extends StatelessWidget {
_buildHeader(info), _buildHeader(info),
SizedBox(height: 24.h), SizedBox(height: 24.h),
_buildDivider(), _buildDivider(),
SizedBox(height: 10.h), SizedBox(height: 20.h),
_buildInfoBlock(info), _buildInfoBlock(info),
SizedBox(height: 10.h), SizedBox(height: 20.h),
_buildDivider(), _buildDivider(),
SizedBox(height: 20.h), SizedBox(height: 20.h),
_buildCareLevelBlock(info), _buildCareLevelBlock(info),
...@@ -54,22 +57,14 @@ class MonitoringPetInfoCard extends StatelessWidget { ...@@ -54,22 +57,14 @@ class MonitoringPetInfoCard extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Container( Container(
width: 120.w, width: 150.w,
height: 120.w, height: 160.w,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20.r), borderRadius: BorderRadius.circular(20.r),
border: Border.all(color: const Color(0xFF5EE6FF), width: 3.w), color: const Color(0xFF1F4E79),
boxShadow: const [
BoxShadow(
color: Color(0x6625BFFF),
blurRadius: 20,
spreadRadius: 2,
),
],
color: const Color(0x261DA7FF),
), ),
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.circular(17.r), borderRadius: BorderRadius.circular(20.r),
child: info.avatarUrl.isNotEmpty child: info.avatarUrl.isNotEmpty
? Image.network( ? Image.network(
info.avatarUrl, info.avatarUrl,
...@@ -77,17 +72,17 @@ class MonitoringPetInfoCard extends StatelessWidget { ...@@ -77,17 +72,17 @@ class MonitoringPetInfoCard extends StatelessWidget {
errorBuilder: (_, __, ___) => Icon( errorBuilder: (_, __, ___) => Icon(
Icons.pets, Icons.pets,
color: const Color(0xFFAAFAFF), color: const Color(0xFFAAFAFF),
size: 56.w, size: 60.w,
), ),
) )
: Icon( : Icon(
Icons.pets, Icons.pets,
color: const Color(0xFFAAFAFF), color: const Color(0xFFAAFAFF),
size: 56.w, size: 60.w,
), ),
), ),
), ),
SizedBox(width: 20.w), SizedBox(width: 24.w),
Expanded( Expanded(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
...@@ -96,15 +91,15 @@ class MonitoringPetInfoCard extends StatelessWidget { ...@@ -96,15 +91,15 @@ class MonitoringPetInfoCard extends StatelessWidget {
info.name, info.name,
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 32.sp, fontSize: 42.sp,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
height: 1.2, height: 1.2,
), ),
), ),
SizedBox(height: 16.h), SizedBox(height: 20.h),
_buildTypeRow('类型', info.type), _buildTypeRow('类型', info.type, true),
SizedBox(height: 8.h), SizedBox(height: 12.h),
_buildTypeRow('品种', info.breed), _buildTypeRow('品种', info.breed, false),
], ],
), ),
), ),
...@@ -112,23 +107,38 @@ class MonitoringPetInfoCard extends StatelessWidget { ...@@ -112,23 +107,38 @@ class MonitoringPetInfoCard extends StatelessWidget {
); );
} }
Widget _buildTypeRow(String label, String value) { Widget _buildTypeRow(String label, String value, bool first) {
return Row( return Row(
children: [ children: [
Container( SizedBox(
width: 8.w, width: 20.w,
height: 8.w, child: Column(
decoration: const BoxDecoration( children: [
shape: BoxShape.circle, if (first)
color: Color(0xFF5EE6FF), Container(
width: 6.w,
height: 6.w,
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Color(0xFF5EE6FF),
),
)
else
SizedBox(height: 6.w),
Container(
width: 1.w,
height: 18.h,
color: const Color(0xFF5EE6FF),
),
],
), ),
), ),
SizedBox(width: 8.w), SizedBox(width: 10.w),
Text( Text(
'$label$value', '$label$value',
style: TextStyle( style: TextStyle(
color: const Color(0xFFB8E8FF), color: const Color(0xFFB8E8FF),
fontSize: 16.sp, fontSize: 22.sp,
), ),
), ),
], ],
...@@ -155,13 +165,13 @@ class MonitoringPetInfoCard extends StatelessWidget { ...@@ -155,13 +165,13 @@ class MonitoringPetInfoCard extends StatelessWidget {
Widget _buildInfoBlock(PatientInfoBO info) { Widget _buildInfoBlock(PatientInfoBO info) {
return Column( return Column(
children: [ children: [
_buildInfoItem(Icons.note_alt_outlined, '宠物病因', info.disease), _buildInfoItem(Icons.description_outlined, '宠物病因', info.disease),
SizedBox(height: 14.h), SizedBox(height: 20.h),
_buildInfoItem(Icons.calendar_today_outlined, '入住时间', info.checkInDate), _buildInfoItem(Icons.home_outlined, '入住时间', info.checkInDate),
SizedBox(height: 14.h), SizedBox(height: 20.h),
_buildInfoItem(Icons.medical_services_outlined, '责任医生', info.doctor), _buildInfoItem(Icons.medical_services_outlined, '责任医生', info.doctor),
SizedBox(height: 14.h), SizedBox(height: 20.h),
_buildInfoItem(Icons.phone_android_outlined, '家长电话', info.phone), _buildInfoItem(Icons.phone_iphone_outlined, '家长电话', info.phone),
], ],
); );
} }
...@@ -169,20 +179,20 @@ class MonitoringPetInfoCard extends StatelessWidget { ...@@ -169,20 +179,20 @@ class MonitoringPetInfoCard extends StatelessWidget {
Widget _buildInfoItem(IconData icon, String label, String value) { Widget _buildInfoItem(IconData icon, String label, String value) {
return Row( return Row(
children: [ children: [
Icon(icon, color: const Color(0xFF5EE6FF), size: 22.w), Icon(icon, color: const Color(0xFF5EE6FF), size: 30.w),
SizedBox(width: 12.w), SizedBox(width: 18.w),
Text( Text(
'$label:', '$label:',
style: TextStyle( style: TextStyle(
color: const Color(0xFFB8E8FF), color: const Color(0xFFB8E8FF),
fontSize: 16.sp, fontSize: 22.sp,
), ),
), ),
Text( Text(
value, value,
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 16.sp, fontSize: 22.sp,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
), ),
), ),
...@@ -198,11 +208,11 @@ class MonitoringPetInfoCard extends StatelessWidget { ...@@ -198,11 +208,11 @@ class MonitoringPetInfoCard extends StatelessWidget {
'护理等级', '护理等级',
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 18.sp, fontSize: 24.sp,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),
// SizedBox(height: 12.h), SizedBox(height: 20.h),
Row( Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
...@@ -210,39 +220,26 @@ class MonitoringPetInfoCard extends StatelessWidget { ...@@ -210,39 +220,26 @@ class MonitoringPetInfoCard extends StatelessWidget {
info.careLevel, info.careLevel,
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 45.sp, fontSize: 80.sp,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w900,
letterSpacing: 4.w, letterSpacing: 6.w,
shadows: const [ shadows: const [
Shadow( Shadow(
color: Color(0x80FF5E5E), color: Color(0x99FF5E5E),
blurRadius: 12, blurRadius: 16,
), ),
], ],
), ),
), ),
const Spacer(), const Spacer(),
Container( Image.asset(
padding: EdgeInsets.all(12.w), 'lib/assets/monitoring/warning.png',
decoration: const BoxDecoration( width: 100.w,
shape: BoxShape.circle, height: 100.w,
boxShadow: [
BoxShadow(
color: Color(0x66FF5E5E),
blurRadius: 18,
spreadRadius: 4,
),
],
),
child: Icon(
Icons.warning_amber_rounded,
color: Color(0xFFFF6B6B),
size: 40.w,
),
), ),
], ],
), ),
// SizedBox(height: 16.h), SizedBox(height: 20.h),
_buildLevelBar(), _buildLevelBar(),
], ],
); );
...@@ -251,46 +248,53 @@ class MonitoringPetInfoCard extends StatelessWidget { ...@@ -251,46 +248,53 @@ class MonitoringPetInfoCard extends StatelessWidget {
Widget _buildLevelBar() { Widget _buildLevelBar() {
const segments = [ const segments = [
Color(0xFFFFFFFF), Color(0xFFFFFFFF),
Color(0xFF00FF9D), Color(0xFF25E5B0),
Color(0xFFFFD66B), Color(0xFFFFB347),
Color(0xFFFF9355), Color(0xFFFF7A4D),
Color(0xFFFF5E5E), Color(0xFFFF4E4E),
]; ];
const shadowColors = [ const shadowColors = [
Color(0x99FFFFFF), Color(0x99FFFFFF),
Color(0x9900FF9D), Color(0x9925E5B0),
Color(0x99FFD66B), Color(0x99FFB347),
Color(0x99FF9355), Color(0x99FF7A4D),
Color(0x99FF5E5E), Color(0x99FF4E4E),
]; ];
return Row( return Container(
children: segments padding: EdgeInsets.symmetric(horizontal: 4.w),
.asMap() decoration: BoxDecoration(
.entries color: const Color(0xFF0A1A2E),
.map((entry) => Expanded( borderRadius: BorderRadius.circular(6.r),
child: Container( ),
margin: EdgeInsets.symmetric(horizontal: 2.w), child: Row(
height: 8.h, children: segments
decoration: BoxDecoration( .asMap()
color: entry.value, .entries
borderRadius: BorderRadius.circular(2.r), .map((entry) => Expanded(
boxShadow: [ child: Container(
BoxShadow( margin: EdgeInsets.symmetric(horizontal: 2.w),
color: shadowColors[entry.key], height: 10.h,
blurRadius: 6, decoration: BoxDecoration(
), color: entry.value,
], borderRadius: BorderRadius.circular(2.r),
boxShadow: [
BoxShadow(
color: shadowColors[entry.key],
blurRadius: 6,
),
],
),
), ),
), ))
)) .toList(),
.toList(), ),
); );
} }
Widget _buildExitButton() { Widget _buildExitButton() {
return Container( return Container(
width: double.infinity, width: double.infinity,
height: 130.h, height: 140.h,
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: DecorationImage( image: DecorationImage(
image: AssetImage('lib/assets/monitoring/title_bg_spacewalk.png'), image: AssetImage('lib/assets/monitoring/title_bg_spacewalk.png'),
...@@ -301,21 +305,21 @@ class MonitoringPetInfoCard extends StatelessWidget { ...@@ -301,21 +305,21 @@ class MonitoringPetInfoCard extends StatelessWidget {
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Icon(Icons.chevron_left, color: const Color(0xFF77EFFF), size: 28.w), Icon(Icons.chevron_left, color: const Color(0xFF77EFFF), size: 30.w),
Icon(Icons.chevron_left, color: const Color(0xFF77EFFF), size: 28.w), Icon(Icons.chevron_left, color: const Color(0xFF77EFFF), size: 30.w),
SizedBox(width: 20.w), SizedBox(width: 24.w),
Text( Text(
'出舱', '出舱',
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 22.sp, fontSize: 28.sp,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
letterSpacing: 4.w, letterSpacing: 4.w,
), ),
), ),
SizedBox(width: 20.w), SizedBox(width: 24.w),
Icon(Icons.chevron_right, color: const Color(0xFF77EFFF), size: 28.w), Icon(Icons.chevron_right, color: const Color(0xFF77EFFF), size: 30.w),
Icon(Icons.chevron_right, color: const Color(0xFF77EFFF), size: 28.w), Icon(Icons.chevron_right, color: const Color(0xFF77EFFF), size: 30.w),
], ],
), ),
), ),
......
...@@ -13,7 +13,7 @@ class MonitoringTopStatusBar extends StatelessWidget { ...@@ -13,7 +13,7 @@ class MonitoringTopStatusBar extends StatelessWidget {
fit: BoxFit.fill, fit: BoxFit.fill,
), ),
), ),
padding: EdgeInsets.only(left: 20.w,bottom: 22.h), padding: EdgeInsets.only(left: 32.w,bottom: 22.h),
child: Row( child: Row(
children: [ children: [
// SizedBox(width: 18.w), // SizedBox(width: 18.w),
...@@ -21,23 +21,23 @@ class MonitoringTopStatusBar extends StatelessWidget { ...@@ -21,23 +21,23 @@ class MonitoringTopStatusBar extends StatelessWidget {
'总运行时长:9999h', '总运行时长:9999h',
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 16.sp, fontSize: 25.sp,
), ),
), ),
SizedBox(width: 8.w), SizedBox(width: 32.w),
Text( Text(
'环境温度:30.68', '环境温度:30.68',
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 16.sp, fontSize: 25.sp,
), ),
), ),
SizedBox(width: 8.w), SizedBox(width: 32.w),
Text( Text(
'总制氧时长:500h', '总制氧时长:500h',
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 16.sp, fontSize: 25.sp,
), ),
), ),
// const Spacer(), // const Spacer(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment