diff --git a/flutter/lib/native/custom_cursor.dart b/flutter/lib/native/custom_cursor.dart index 394bacd16..4f069a6fb 100644 --- a/flutter/lib/native/custom_cursor.dart +++ b/flutter/lib/native/custom_cursor.dart @@ -58,6 +58,9 @@ MouseCursor buildCursorOfCache( })); cursor.addKey(key); } - return FlutterCustomMemoryImageCursor(key: key); + return FlutterCustomMemoryImageCursor( + key: key, + registrationToken: custom_cursor_manager.CursorManager.instance + .registrationTokenFor(key)); } } diff --git a/flutter/pubspec.lock b/flutter/pubspec.lock index 5e0ae49a0..0fe84be61 100644 --- a/flutter/pubspec.lock +++ b/flutter/pubspec.lock @@ -522,8 +522,8 @@ packages: dependency: "direct main" description: path: "." - ref: "9d6c60404c990e74c6334f6940eb1b8de4d43d9d" - resolved-ref: "9d6c60404c990e74c6334f6940eb1b8de4d43d9d" + ref: "afa5ed638d1aa20ecba149282c21f97fdeb0e946" + resolved-ref: "afa5ed638d1aa20ecba149282c21f97fdeb0e946" url: "https://github.com/fufesou/flutter_custom_cursor" source: git version: "0.0.3" diff --git a/flutter/pubspec.yaml b/flutter/pubspec.yaml index 4cbb92dc4..349838b7b 100644 --- a/flutter/pubspec.yaml +++ b/flutter/pubspec.yaml @@ -63,7 +63,7 @@ dependencies: flutter_custom_cursor: git: url: https://github.com/fufesou/flutter_custom_cursor - ref: 9d6c60404c990e74c6334f6940eb1b8de4d43d9d + ref: afa5ed638d1aa20ecba149282c21f97fdeb0e946 window_size: git: url: https://github.com/21pages/flutter-desktop-embedding.git