Merge branch 'master' of github.com:open-trade/flutter_hbb into service

This commit is contained in:
csf
2022-03-28 16:55:06 +08:00
10 changed files with 389 additions and 68 deletions

View File

@@ -65,6 +65,10 @@ class FfiModel with ChangeNotifier {
notifyListeners();
}
void updateUser() {
notifyListeners();
}
bool keyboard() => _permissions['keyboard'] != false;
void clear() {
@@ -103,7 +107,7 @@ class FfiModel with ChangeNotifier {
_permissions.clear();
}
void update(String peerId,HandleMsgBox handleMsgBox) {
void update(String peerId, HandleMsgBox handleMsgBox) {
var pos;
for (;;) {
var evt = FFI.popEvent();
@@ -130,9 +134,10 @@ class FfiModel with ChangeNotifier {
} else if (name == 'permission') {
FFI.ffiModel.updatePermission(evt);
} else if (name == 'chat_client_mode') {
FFI.chatModel.receive(ChatModel.clientModeID,evt['text'] ?? "");
FFI.chatModel.receive(ChatModel.clientModeID, evt['text'] ?? "");
} else if (name == 'chat_server_mode') {
FFI.chatModel.receive(int.parse(evt['id'] as String),evt['text'] ?? "");
FFI.chatModel
.receive(int.parse(evt['id'] as String), evt['text'] ?? "");
} else if (name == 'file_dir') {
FFI.fileModel.receiveFileDir(evt);
} else if (name == 'job_progress') {

View File

@@ -15,7 +15,7 @@ bool mouseIn = false;
class PlatformFFI {
static void clearRgbaFrame() {}
static Uint8List getRgba() {
static Uint8List? getRgba() {
return js.context.callMethod('getRgba');
}