fix: popup menu, nav, pop (#8089)

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2024-05-18 23:55:05 +08:00
committed by GitHub
parent d3eaa6600d
commit 72d59af7b0
2 changed files with 15 additions and 21 deletions

View File

@@ -341,7 +341,8 @@ class _PeerTabPageState extends State<PeerTabPage>
currentValue: model.isVisibleEnabled[tabIndex],
setter: (show) async {
model.setTabVisible(tabIndex, show);
cancelFunc();
// Do not hide the current menu (checkbox)
// cancelFunc();
},
enabled: (!isOptVisiableFixed).obs));
}
@@ -821,6 +822,9 @@ class _PeerViewDropdownState extends State<PeerViewDropdown> {
k: kOptionPeerCardUiType,
v: peerCardUiType.value.index.toString(),
);
if (Navigator.canPop(context)) {
Navigator.pop(context);
}
}
}),
),