1.更新睡眠报告无数据时居中显示
2.更新控制按钮变圆圈 3.修复首页设备列表名称太长导致控制图标挤出去
This commit is contained in:
@@ -211,7 +211,7 @@ class DeviceInfoWidget extends GetView {
|
||||
|
||||
webviewTestController.web.jsbridge?.dart
|
||||
.pageActive(false);
|
||||
await Future.delayed(Duration(seconds: 1));
|
||||
// await Future.delayed(Duration(seconds: 1));
|
||||
webviewTestController.web.jsbridge?.dart
|
||||
.appToHtmlDevice(device);
|
||||
MainPageBBottomChange.jumpTo(2);
|
||||
|
||||
@@ -33,32 +33,39 @@ class _HomeDeviceStausWidgetState extends State<HomeDeviceStausWidget> {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Container(
|
||||
width: 170.rpx,
|
||||
height: 81.rpx,
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
child: Image.network(
|
||||
widget.deviceStatus['device_image'], // 从DeviceStatus获取图片
|
||||
width: 200.rpx,
|
||||
height: 200.rpx,
|
||||
fit: BoxFit.cover,
|
||||
Flexible(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Container(
|
||||
width: 170.rpx,
|
||||
height: 81.rpx,
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8.rpx),
|
||||
child: Image.network(
|
||||
widget
|
||||
.deviceStatus['device_image'], // 从DeviceStatus获取图片
|
||||
width: 200.rpx,
|
||||
height: 200.rpx,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
Text(
|
||||
'${(widget.deviceStatus['name'] ?? '').isEmpty ? '未命名'.tr : widget.deviceStatus['name']}',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 26.rpx,
|
||||
letterSpacing: 0.0.rpx,
|
||||
Text(
|
||||
'${(widget.deviceStatus['name'] ?? '').isEmpty ? '未命名'.tr : widget.deviceStatus['name']}',
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 26.rpx,
|
||||
letterSpacing: 0.0.rpx,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
].divide(SizedBox(height: 26.rpx)),
|
||||
].divide(SizedBox(height: 26.rpx)),
|
||||
),
|
||||
),
|
||||
SizedBox(width: 26.rpx),
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
|
||||
@@ -282,7 +282,7 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
|
||||
borderColor:
|
||||
Colors.transparent,
|
||||
borderWidth: 2,
|
||||
borderRadius: 0.rpx,
|
||||
borderRadius: 100.rpx,
|
||||
margin:
|
||||
EdgeInsetsDirectional
|
||||
.fromSTEB(
|
||||
|
||||
@@ -540,7 +540,7 @@ class _NewHomePageState extends State<NewHomePage> {
|
||||
borderColor:
|
||||
Colors.transparent,
|
||||
borderWidth: 2,
|
||||
borderRadius: 18,
|
||||
borderRadius: 100.rpx,
|
||||
margin:
|
||||
EdgeInsetsDirectional
|
||||
.fromSTEB(
|
||||
|
||||
Reference in New Issue
Block a user