修改房间选择 详情不更改bug 以及部分样式

This commit is contained in:
czz
2025-07-15 14:53:16 +08:00
parent a8b0723714
commit 8ec4da3488
15 changed files with 117 additions and 51 deletions

View File

@@ -39,7 +39,7 @@ class _MHTPeopleInfoPageState extends State<MHTPeopleInfoPage> {
// Initialize person A
peopleList.add({
'mac': device?.macA,
'gender': "",
'gender': 1,
'id': device!.macAID,
});
@@ -47,7 +47,7 @@ class _MHTPeopleInfoPageState extends State<MHTPeopleInfoPage> {
if (device?.macB != null && device!.macB!.isNotEmpty) {
peopleList.add({
'mac': device.macB,
'gender': "",
'gender': 1,
'id': device!.macBID,
});
}
@@ -326,7 +326,7 @@ class _MHTPeopleInfoPageState extends State<MHTPeopleInfoPage> {
: 1, checkChange: (sindex) {
setState(() {
peopleList[index]['gender'] =
sindex == 0 ? "" : "";
sindex;
});
}).then((d) {});
});
@@ -351,7 +351,7 @@ class _MHTPeopleInfoPageState extends State<MHTPeopleInfoPage> {
Container(
width: 200.rpx,
child: Text(
'${peopleList[index]['gender']}',
'${peopleList[index]['gender'] == 1 ? '' : ''}',
textAlign: TextAlign.right,
style: TextStyle(
fontFamily: 'Readex Pro',