add ui event

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-04-20 20:57:47 +08:00
parent d9755abbc2
commit 9a08e0bed4
9 changed files with 262 additions and 63 deletions

View File

@@ -40,8 +40,5 @@ void handleReloading(Map<String, dynamic> evt, String peer) {
return;
}
final ui = UiType.fromJson(evt);
if (!ui.isValid) {
return;
}
addLocation(evt['id']!, evt['location']!, ui);
}