Activate native cursors after successful registration retries

This commit is contained in:
fufesou
2026-09-13 15:52:24 +08:00
parent a87d9c1082
commit 20ede1a85f
3 changed files with 7 additions and 4 deletions

View File

@@ -58,6 +58,9 @@ MouseCursor buildCursorOfCache(
})); }));
cursor.addKey(key); cursor.addKey(key);
} }
return FlutterCustomMemoryImageCursor(key: key); return FlutterCustomMemoryImageCursor(
key: key,
registrationToken: custom_cursor_manager.CursorManager.instance
.registrationTokenFor(key));
} }
} }

View File

@@ -522,8 +522,8 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: "9d6c60404c990e74c6334f6940eb1b8de4d43d9d" ref: "afa5ed638d1aa20ecba149282c21f97fdeb0e946"
resolved-ref: "9d6c60404c990e74c6334f6940eb1b8de4d43d9d" resolved-ref: "afa5ed638d1aa20ecba149282c21f97fdeb0e946"
url: "https://github.com/fufesou/flutter_custom_cursor" url: "https://github.com/fufesou/flutter_custom_cursor"
source: git source: git
version: "0.0.3" version: "0.0.3"

View File

@@ -63,7 +63,7 @@ dependencies:
flutter_custom_cursor: flutter_custom_cursor:
git: git:
url: https://github.com/fufesou/flutter_custom_cursor url: https://github.com/fufesou/flutter_custom_cursor
ref: 9d6c60404c990e74c6334f6940eb1b8de4d43d9d ref: afa5ed638d1aa20ecba149282c21f97fdeb0e946
window_size: window_size:
git: git:
url: https://github.com/21pages/flutter-desktop-embedding.git url: https://github.com/21pages/flutter-desktop-embedding.git