Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
feat: update image builder to support board selection style
Lucas.Xu585e71aa9de3
diff --git a/frontend/app_flowy/packages/appflowy_editor/lib/src/render/image/image_node_widget.dart b/frontend/app_flowy/packages/appflowy_editor/lib/src/render/image/image_node_widget.dartindex 5f9b2142fe..bebeeb6c3f 100644--- a/frontend/app_flowy/packages/appflowy_editor/lib/src/render/image/image_node_widget.dart+++ b/frontend/app_flowy/packages/appflowy_editor/lib/src/render/image/image_node_widget.dart@@ -34,6 +34,8 @@ class ImageNodeWidget extends StatefulWidget {class _ImageNodeWidgetState extends State<ImageNodeWidget>with SelectableMixin {+ RenderBox get _renderBox => context.findRenderObject() as RenderBox;+final _imageKey = GlobalKey();double? _imageWidth;@@ -76,6 +78,12 @@ class _ImageNodeWidgetState extends State<ImageNodeWidget>);}+ @override+ bool get shouldCursorBlink => false;++ @override+ CursorStyle get cursorStyle => CursorStyle.borderLine;+@overridePosition start() {return Position(path: widget.node.path, offset: 0);@@ -93,7 +101,8 @@ class _ImageNodeWidgetState extends State<ImageNodeWidget>@overrideRect? getCursorRectInPosition(Position position) {- return null;+ final size = _renderBox.size;+ return Rect.fromLTWH(-size.width / 2.0, 0, size.width, size.height);}@override