diff --git a/lib/src/widgets/raw_editor.dart b/lib/src/widgets/raw_editor.dart index 42119f92..83aa5740 100644 --- a/lib/src/widgets/raw_editor.dart +++ b/lib/src/widgets/raw_editor.dart @@ -299,6 +299,12 @@ class RawEditorState extends EditorState ); if (widget.scrollable) { + /// Since [SingleChildScrollView] does not implement + /// `computeDistanceToActualBaseline` it prevents the editor from + /// providing its baseline metrics. To address this issue we wrap + /// the scroll view with [BaselineProxy] which mimics the editor's + /// baseline. + // This implies that the first line has no styles applied to it. final baselinePadding = EdgeInsets.only(top: _styles!.paragraph!.verticalSpacing.item1); child = BaselineProxy(