update dir ; move settings from main page to settings_page

This commit is contained in:
csf
2022-02-28 21:26:44 +08:00
parent e6b1ff40be
commit 6206c8f900
10 changed files with 489 additions and 403 deletions

View File

@@ -0,0 +1,5 @@
import 'package:flutter/material.dart';
class ChatModel with ChangeNotifier {
}

View File

@@ -692,11 +692,12 @@ extension ToString on MouseButtons{
class FFI {
static String id = "";
static var id = "";
static var shift = false;
static var ctrl = false;
static var alt = false;
static var command = false;
static var version = "";
static final imageModel = ImageModel();
static final ffiModel = FfiModel();
static final cursorModel = CursorModel();
@@ -823,10 +824,6 @@ class FFI {
PlatformFFI.setByName(name, value);
}
static Future<String> getVersion() async {
return await PlatformFFI.getVersion();
}
static handleMouse(Map<String, dynamic> evt) {
var type = '';
var isMove = false;

View File

@@ -107,6 +107,7 @@ class PlatformFFI {
} catch (e) {
print(e);
}
version = await getVersion();
}
static void startDesktopWebListener(