From 0ba7c53dad5dd1eafd7258b840a2dc33ad2fab3d Mon Sep 17 00:00:00 2001 From: Vincent Chan Date: Thu, 28 Jul 2022 14:41:29 +0800 Subject: [PATCH] feat: remove unused imports --- .../flowy_editor/lib/render/rich_text/flowy_rich_text.dart | 4 ++++ .../internal_key_event_handlers/arrow_keys_handler.dart | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/flowy_rich_text.dart b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/flowy_rich_text.dart index 66c87a2dd4..4731542ae2 100644 --- a/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/flowy_rich_text.dart +++ b/frontend/app_flowy/packages/flowy_editor/lib/render/rich_text/flowy_rich_text.dart @@ -255,6 +255,10 @@ class _FlowyRichTextState extends State with Selectable { return Rect.zero; } + Offset localToGlobal(Offset offset) { + return _renderParagraph.localToGlobal(offset); + } + TextSpan get _decorateTextSpanWithGlobalStyle => TextSpan( children: _textSpan.children ?.whereType() diff --git a/frontend/app_flowy/packages/flowy_editor/lib/service/internal_key_event_handlers/arrow_keys_handler.dart b/frontend/app_flowy/packages/flowy_editor/lib/service/internal_key_event_handlers/arrow_keys_handler.dart index 30b295765e..3bc3f5e0b5 100644 --- a/frontend/app_flowy/packages/flowy_editor/lib/service/internal_key_event_handlers/arrow_keys_handler.dart +++ b/frontend/app_flowy/packages/flowy_editor/lib/service/internal_key_event_handlers/arrow_keys_handler.dart @@ -2,7 +2,6 @@ import 'package:flowy_editor/document/node.dart'; import 'package:flowy_editor/document/position.dart'; import 'package:flowy_editor/service/keyboard_service.dart'; import 'package:flowy_editor/document/selection.dart'; -import 'package:flowy_editor/extensions/node_extensions.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart';