update overlay widgets on flutter desktop

1. add mobile actions
2. disable showChatIcon
This commit is contained in:
csf
2022-09-08 22:18:02 +08:00
parent 36143c0880
commit d0c438268d
7 changed files with 126 additions and 117 deletions

View File

@@ -143,9 +143,12 @@ class ChatModel with ChangeNotifier {
}
toggleChatOverlay() {
if (chatIconOverlayEntry == null || chatWindowOverlayEntry == null) {
if ((!isDesktop && chatIconOverlayEntry == null) ||
chatWindowOverlayEntry == null) {
gFFI.invokeMethod("enable_soft_keyboard", true);
showChatIconOverlay();
if (!isDesktop) {
showChatIconOverlay();
}
showChatWindowOverlay();
} else {
hideChatIconOverlay();