From 7c197cdc07672ed308d663ba11801941816ace4b Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Mon, 10 Jan 2022 09:34:23 +0800 Subject: [PATCH] bugfix --- assets/icons/sos.png | Bin 5380 -> 5513 bytes .../old_age/old_age_support_page_simple.dart | 55 ++++++++++-------- lib/utils/websocket/fire_dialog.dart | 24 +++++--- 3 files changed, 46 insertions(+), 33 deletions(-) diff --git a/assets/icons/sos.png b/assets/icons/sos.png index 33569c785ec16e7592d9dc436c5c30badbc1b4ce..023756519465410414e884fdea9bb8e54ac779f8 100644 GIT binary patch literal 5513 zcmbtYi9b|d+#WURDl%goOFv`myFn46VPq|hrEJmMtQ939gec=0euOL&={HwMMTn5K z%w)})5K@16Hgc;EZ^oXfhx&%F8Ar&ZMc%R-Rdo&sInC7v;ABOg30_^-4ppY)#_ zX8Y2t?>~!uJ}cKAw{Vu|h*_ulzpIGSRaMLMNKjE@*V5lGTyla4S)~2y$7MEAPX-DZ zVLyAk_04`xef0Y2cd}J3$RJlL)p!2;+WCsQfwu%CrvKCR>#)F$%`R6jPJsp223+0Rm)`lXB{}N33c3 zZ22sEpK=Ss(HqvcV~@>#&aFkM$wLd{X9r&S4BFknnDiOu z#H9scgYZzGXN_s4V(*9UZDr3ZT(X0fjYbI3;sS#^9+S0$F1>z^lUAsvm-Wr69}>>T zR2R?T?ypQ-8r$S?@5=kuehBYSMlWDUtlX(I>TU}8BS6?c z7a`~g5sWP{)d_OMbMo{+ITA}cj$M_c3Livc4S!2@NWjo-ELn5agr-HtPAWivBCp}8 z0440!;I#@AAimxDyp{}>btq{sk5C7ISE2W3$k=)es~ywv5@Yoc5An&H+qDhV7#O;R^xbE4xRN{pxD%r4tYm=S&YDX*iyX}P(X_{ead+gH5%$LdlxTl$Ys&A8+4B@sWNA5&JBRDYa_X3-X7C5wt&BUqm-?0So4r zEEWew0b@Wcs0bC|X;BNN^g8p6P6c%*9r~R7)S>S31gF2gfiY?5q3tYP$8T2EKNlR; z?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E&Eg`PI=LzT}zFZ-2}Z z&_6e=h3vL}Dr)yk-kkL@dLxc~wYfx4CtiO9E#0OC(I$9mOE>!LmSX0ql>vs~`vcLW_nIxxth)Jis z{wo&h`Q6%q1*1)aLBA*_LL=f7xejTbS0oLHnUdUb9yt}mXgWoX)#%h|`x?s*eg#A< zq}FEf5O|bW`u?4x%P=;Cn{|2!9SQIy;gOp9xL;J_P#D=Og5n-buYfWT@Q{99cCqvX zAjR8rnBbto#Y@1lp|l1amcAE)iv;-mamX4f?mdOr9zkA3h9G#@B(aHZX&8Y>YtUlp z9{?-_z~_lWy5Rs69=)xP{Y1t21=D8)7#9RWX24Q~G?%Ik%NAxab$|#TFg4aA_C}Do z@Q@1-HeGlEP=V>8XarxD{w{zB2lp-x*-F7-^obJ@WFkC-#X~?zbMe;@G*f_Y4TzY+ z1FCw&PgHDg2!$)io{^r2mx2*^ShPhT!V3@ZQHk05*xm>V5y3_XGrFO?Y!WS7lS`FG z(D;GKPB3-E0SZ*&JALeG7$q0M_5t%$5wN^M<7I$lmMoqmnGo`fP)IlP5gW{-BPcH1 zJUW>0QE+OLdPD#Y-YX?a&Z1di*8qeWnCWmiS_o#ddlYQK{y0p}Qyr8cfki0DV^Ahp zD1^j}1ZCPIDB|2)Q0D#;B3jk=xQ1+aD!v1cT&Lg!Py3$pw)#PbG32)^v%1GjJGn02TI0AErf*Xf&fOb@NtB|k{X*m z@?tE{FBwggeHwZ@^C**Ji(ndbN~u_E>XGyzhJe^7xJ$D { ), child: _model == null ? Container() - : ListView( - padding: EdgeInsets.symmetric(horizontal: 32.w), - children: [ - 550.w.heightBox, - open, - 16.w.heightBox, - Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - '数据更新自 ${DateUtil.formatDate(_date!, format: DateFormats.full)}' - .text - .size(22.sp) - .color(Colors.black.withOpacity(0.25)) - .make(), - 40.w.heightBox, - ], - ), - 40.w.heightBox, - overview(), - 24.w.heightBox, - statusCard(), - 40.w.heightBox, - bottomCard(), - ], + : SafeArea( + child: ListView( + padding: EdgeInsets.symmetric(horizontal: 32.w), + children: [ + 400.w.heightBox, + open, + 16.w.heightBox, + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + '数据更新自 ${DateUtil.formatDate(_date!, format: DateFormats.full)}' + .text + .size(22.sp) + .color(Colors.black.withOpacity(0.25)) + .make(), + 40.w.heightBox, + ], + ), + 40.w.heightBox, + overview(), + 24.w.heightBox, + statusCard(), + 40.w.heightBox, + bottomCard(), + 40.w.heightBox, + ], + ), ), ), ); @@ -380,7 +383,9 @@ class _OldAgeSupportPageSimpleState extends State { ]) .size(56.sp) .bold - .color(Color(0xFF37C6BD)) + .color(_model!.bloodOxygen >= 95 + ? Color(0xFF37C6BD) + : Colors.red) .make(), Spacer(), '正常为95%以上' diff --git a/lib/utils/websocket/fire_dialog.dart b/lib/utils/websocket/fire_dialog.dart index 8e04959e..7afce655 100644 --- a/lib/utils/websocket/fire_dialog.dart +++ b/lib/utils/websocket/fire_dialog.dart @@ -7,6 +7,7 @@ import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/websocket/alarm_models/fall_model.dart'; import 'package:aku_new_community/utils/websocket/alarm_models/fire_model.dart'; import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; import 'package:get/get.dart'; class FireDialog { @@ -19,9 +20,16 @@ class FireDialog { title: getImage(type), content: Column( children: [ - Text(getTitle(type)), + Text( + getTitle(type), + style: TextStyle(color: Colors.black, fontSize: 34.sp), + ), 10.hb, - Text(getContent(json, type)), + Text( + getContent(json, type), + style: TextStyle(color: Colors.black, fontSize: 26.sp), + textAlign: TextAlign.start, + ), ], ), actions: [ @@ -52,7 +60,7 @@ class FireDialog { return '管家端APP报警'; case 4: return '跌倒报警'; - case 45: + case 5: return 'SOS紧急联系报警'; default: return ''; @@ -93,35 +101,35 @@ class FireDialog { R.ASSETS_ICONS_FIRE_ALARM_PNG, width: 110.w, height: 110.w, - fit: BoxFit.fill, + fit: BoxFit.fitHeight, ); case 2: return Image.asset( R.ASSETS_ICONS_DEVICE_ALARM_PNG, width: 110.w, height: 110.w, - fit: BoxFit.fill, + fit: BoxFit.fitHeight, ); case 3: return Image.asset( R.ASSETS_ICONS_APP_ALARM_PNG, width: 110.w, height: 110.w, - fit: BoxFit.fill, + fit: BoxFit.fitHeight, ); case 4: return Image.asset( R.ASSETS_ICONS_APP_ALARM_PNG, width: 110.w, height: 110.w, - fit: BoxFit.fill, + fit: BoxFit.fitHeight, ); case 5: return Image.asset( Assets.icons.sos.path, width: 110.w, height: 110.w, - fit: BoxFit.fill, + fit: BoxFit.fitHeight, ); default: return SizedBox(width: 110.w, height: 110.w);