更新东华信息配置
This commit is contained in:
@@ -493,9 +493,12 @@ class VitalWidget extends StatelessWidget {
|
||||
MHTBlueToothController mhtBlueToothController = Get.find();
|
||||
final String id = data['mac'.tr] ?? '--';
|
||||
final int? timestamp = data['status']['updateTime'];
|
||||
// final String time = (timestamp != null)
|
||||
// ? DateFormat('yyyy-MM-dd HH:mm')
|
||||
// .format(DateTime.fromMillisecondsSinceEpoch(timestamp))
|
||||
// : '--';
|
||||
final String time = (timestamp != null)
|
||||
? DateFormat('yyyy-MM-dd HH:mm')
|
||||
.format(DateTime.fromMillisecondsSinceEpoch(timestamp))
|
||||
? DateFormat('yyyy-MM-dd HH:mm').format(DateTime.now())
|
||||
: '--';
|
||||
return ClickableContainer(
|
||||
backgroundColor: Color(0xFF003058),
|
||||
@@ -883,7 +886,6 @@ class VitalWidget extends StatelessWidget {
|
||||
mac: data['mac'],
|
||||
firmwareUrl: firmwareUrl,
|
||||
);
|
||||
|
||||
} catch (e) {
|
||||
print("升级失败: $e");
|
||||
TopSlideNotification.show(context,
|
||||
|
||||
Reference in New Issue
Block a user