修改房间选择 详情不更改bug 以及部分样式
This commit is contained in:
@@ -43,7 +43,7 @@ class _RoomPickerPageState extends State<RoomPickerPage> {
|
||||
);
|
||||
}
|
||||
|
||||
int selectedIndex = 1;
|
||||
int selectedIndex = 0;
|
||||
BoxConstraints? bodysize;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -189,7 +189,8 @@ class _RoomPickerPageState extends State<RoomPickerPage> {
|
||||
"roomId": rooms[selectedIndex]['_id'],
|
||||
},
|
||||
onSuccess: (res) {
|
||||
|
||||
editedData['roomName'] =
|
||||
rooms[selectedIndex]['name'];
|
||||
TopSlideNotification.show(context,
|
||||
text: "更新成功".tr,
|
||||
textColor: Color(0XFF00C1AA));
|
||||
@@ -202,7 +203,7 @@ class _RoomPickerPageState extends State<RoomPickerPage> {
|
||||
} catch (e) {
|
||||
ef.log("[h5]通知列表更新错误:$e");
|
||||
}
|
||||
Get.back(result:editedData);
|
||||
Get.back(result: editedData);
|
||||
},
|
||||
onFailure: (res) {
|
||||
TopSlideNotification.show(context,
|
||||
|
||||
Reference in New Issue
Block a user