Skip to content

Commit

Permalink
fix: added autoScrollEdgeOffset to fix assertion error when scrolling…
Browse files Browse the repository at this point in the history
… in the example (#974) (#991)
  • Loading branch information
mikefaust-jm authored Dec 16, 2024
1 parent ca04a67 commit 4f1473b
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions example/lib/pages/auto_expand_editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,18 @@ class AutoExpandEditor extends StatelessWidget {
maxHeight: 360,
maxWidth: 400,
),
child: SingleChildScrollView(
child: IntrinsicHeight(
child: AppFlowyEditor(
child: IntrinsicHeight(
child: AppFlowyEditor(
editorState: editorState,
shrinkWrap: true,
autoScrollEdgeOffset: 24,
editorStyle: const EditorStyle.desktop(
padding: EdgeInsets.symmetric(horizontal: 8),
),
blockComponentBuilders: _buildBlockComponentBuilders(),
editorScrollController: EditorScrollController(
editorState: editorState,
disableAutoScroll: true,
shrinkWrap: true,
editorStyle: const EditorStyle.desktop(
padding: EdgeInsets.symmetric(horizontal: 8),
),
blockComponentBuilders: _buildBlockComponentBuilders(),
editorScrollController: EditorScrollController(
editorState: editorState,
shrinkWrap: true,
),
),
),
),
Expand Down

0 comments on commit 4f1473b

Please sign in to comment.