更新界面布局
This commit is contained in:
@@ -1043,6 +1043,8 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
||||
widget.device['_id'];
|
||||
personController.name.value =
|
||||
widget.device['person']['name'];
|
||||
personController.update_person_mac.value =
|
||||
widget.device['mac'];
|
||||
personController.gender.value =
|
||||
widget.device['person']['gender'] ?? 1;
|
||||
personController.weight?.value =
|
||||
@@ -1065,8 +1067,16 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
||||
MyUtils.formatBirthdayTime(
|
||||
widget.device['person']['birthday']);
|
||||
} else {
|
||||
personController.update_person_mac.value =
|
||||
widget.device['mac'];
|
||||
personController.currentPersonId.value =
|
||||
widget.device['_id'];
|
||||
personController.name.value = "";
|
||||
personController.gender.value = 1;
|
||||
personController.dateTime = null;
|
||||
personController.height.value = "";
|
||||
personController.weight.value = "";
|
||||
personController.diseaseList.value = [];
|
||||
}
|
||||
await Get.toNamed("/updatePersonPage",
|
||||
arguments: widget.device['bind_type']);
|
||||
@@ -1292,7 +1302,6 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
||||
bodyDeviceController.wifiMac = device['mac'];
|
||||
Get.toNamed("/wifiPagePerson", arguments: device);
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
double _calculateMaxMenuItemWidth(List<String> texts, TextStyle style) {
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:flutterflow_ui/flutterflow_ui.dart';
|
||||
import 'package:vbvs_app/common/color/appConstants.dart';
|
||||
import 'package:vbvs_app/common/util/FitTool.dart';
|
||||
import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:vbvs_app/component/tool/ClickableContainer.dart';
|
||||
import 'package:vbvs_app/controller/theme_controller/ThemeController.dart';
|
||||
|
||||
@@ -24,8 +25,9 @@ class DeviceStatusInfoWidget extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ClickableContainer(
|
||||
backgroundColor: themeController.currentColor.sc5,
|
||||
highlightColor: themeController.currentColor.sc5,
|
||||
// backgroundColor: themeController.currentColor.sc5,
|
||||
backgroundColor: stringToColor("#242835").withOpacity(0.8),
|
||||
highlightColor: themeController.currentColor.sc21,
|
||||
borderRadius: AppConstants().normal_container_radius,
|
||||
padding: EdgeInsets.zero,
|
||||
onTap: () {
|
||||
@@ -76,7 +78,7 @@ class DeviceStatusInfoWidget extends StatelessWidget {
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 30.rpx,
|
||||
letterSpacing: 0.0,
|
||||
color: themeController.currentColor.sc3,
|
||||
color: themeController.currentColor.sc4,
|
||||
),
|
||||
),
|
||||
].divide(SizedBox(height: 39.rpx)),
|
||||
|
||||
@@ -169,6 +169,7 @@ class _MessageSettingPageState extends State<MessageSettingPage> {
|
||||
print(res);
|
||||
},
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -109,7 +109,7 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
||||
minHeight: 200.rpx,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.transparent,
|
||||
color: Colors.white,
|
||||
),
|
||||
child:
|
||||
(widget.device['code']?.toString().isNotEmpty ??
|
||||
@@ -124,6 +124,7 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 20.rpx),
|
||||
Container(
|
||||
height: 50.rpx,
|
||||
decoration: BoxDecoration(),
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user