flutter_desktop: fix cursor image when cursor moved in from other window

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-10-03 22:03:49 -07:00
parent 551c5ecddf
commit 488e619bc4
2 changed files with 16 additions and 0 deletions

View File

@@ -1113,3 +1113,12 @@ Future<Map<String, String>> getHttpHeaders() async {
'Bearer ${await bind.mainGetLocalOption(key: 'access_token')}'
};
}
// Simple wrapper of built-in types for refrence use.
class SimpleWrapper<T> {
T t;
SimpleWrapper(this.t);
T get value => t;
set value(T t) => this.t = t;
}