更新界面布局

This commit is contained in:
wyf
2025-06-04 11:54:01 +08:00
parent 40732066fe
commit 857317caf1
34 changed files with 4961 additions and 459 deletions

View File

@@ -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) {

View File

@@ -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)),

View File

@@ -169,6 +169,7 @@ class _MessageSettingPageState extends State<MessageSettingPage> {
print(res);
},
);
}
@override