更新快检功能必传mac参数
This commit is contained in:
@@ -272,10 +272,14 @@ class _QcBreatheStandardWidgetState extends State<QcBreatheStandardWidget> {
|
||||
EdgeInsetsDirectional.fromSTEB(0.rpx, 0.rpx, 0.rpx, 0.rpx),
|
||||
child: Row(
|
||||
children: [
|
||||
_buildBreathItem(avgBreath),
|
||||
_buildBreathItem(baseBreath),
|
||||
_buildBreathItem(minBreath),
|
||||
_buildBreathItem(maxBreath),
|
||||
_buildBreathItem(avgBreath,
|
||||
valueColor: stringToColor("#00C1AA")),
|
||||
_buildBreathItem(baseBreath,
|
||||
valueColor: stringToColor("#FF7159")),
|
||||
_buildBreathItem(minBreath,
|
||||
valueColor: stringToColor("#E3AFDD")),
|
||||
_buildBreathItem(maxBreath,
|
||||
valueColor: stringToColor("#FF9F66")),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -289,7 +293,7 @@ class _QcBreatheStandardWidgetState extends State<QcBreatheStandardWidget> {
|
||||
}
|
||||
}
|
||||
|
||||
Widget _buildBreathItem(Map<String, dynamic> data) {
|
||||
Widget _buildBreathItem(Map<String, dynamic> data, {Color? valueColor}) {
|
||||
return Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 4.rpx, vertical: 4.rpx),
|
||||
@@ -322,7 +326,7 @@ class _QcBreatheStandardWidgetState extends State<QcBreatheStandardWidget> {
|
||||
child: Text(
|
||||
"${data['value']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc2,
|
||||
color: valueColor ?? themeController.currentColor.sc2,
|
||||
fontSize: AppConstants().normal_text_fontSize,
|
||||
),
|
||||
maxLines: 2,
|
||||
@@ -330,7 +334,7 @@ class _QcBreatheStandardWidgetState extends State<QcBreatheStandardWidget> {
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 4.rpx),
|
||||
SizedBox(width: 6.rpx),
|
||||
Flexible(
|
||||
fit: FlexFit.loose,
|
||||
child: Text(
|
||||
|
||||
Reference in New Issue
Block a user