diff --git a/packages/fleather/lib/src/widgets/editor.dart b/packages/fleather/lib/src/widgets/editor.dart index 517e8eb7..889f44bb 100644 --- a/packages/fleather/lib/src/widgets/editor.dart +++ b/packages/fleather/lib/src/widgets/editor.dart @@ -747,6 +747,15 @@ class RawEditor extends StatefulWidget { /// abstract class EditorState extends State implements TextSelectionDelegate { + @override + bool lookUpEnabled = true; + + @override + bool shareEnabled = true; + + @override + bool searchWebEnabled = true; + ClipboardStatusNotifier? get clipboardStatus; ScrollController get scrollController; @@ -1637,6 +1646,9 @@ class RawEditorState extends EditorState onSelectAll: selectAllEnabled ? () => selectAll(SelectionChangedCause.toolbar) : null, + onLookUp: null, + onSearchWeb: null, + onShare: null, onLiveTextInput: null); } diff --git a/packages/fleather/lib/src/widgets/single_child_scroll_view.dart b/packages/fleather/lib/src/widgets/single_child_scroll_view.dart index c60aee9d..dfb00488 100644 --- a/packages/fleather/lib/src/widgets/single_child_scroll_view.dart +++ b/packages/fleather/lib/src/widgets/single_child_scroll_view.dart @@ -305,7 +305,8 @@ class _RenderSingleChildViewport extends RenderBox @override RevealedOffset getOffsetToReveal(RenderObject target, double alignment, - {Rect? rect}) { + {Rect? rect, Axis? axis}) { + // axis is ignored as we only support SingleDimensionViewport rect ??= target.paintBounds; if (target is! RenderBox) { return RevealedOffset(offset: offset.pixels, rect: rect);