瀏覽代碼

Update example

xuty 2 年之前
父節點
當前提交
d87c5eecf0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      example/lib/suggestion.dart

+ 1 - 1
example/lib/suggestion.dart

@@ -200,7 +200,7 @@ class _HomeState extends State<Home> {
     print('suggestions: $suggestions');
 
     if (suggestions.isNotEmpty) {
-      suggestionOverlay.update(terminalKey.currentState!.cursorRect);
+      suggestionOverlay.update(terminalKey.currentState!.globalCursorRect);
     } else {
       suggestionOverlay.hide();
     }