fix: added autoScrollEdgeOffset to fix assertion error when scrolling in the example (#974) (#991)

This commit is contained in:
Mike Faust 2024-12-16 03:43:03 +01:00 • committed by GitHub
commit 4f1473b392
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,20 +32,18 @@ class AutoExpandEditor extends StatelessWidget {
maxHeight: 360, maxHeight: 360,
maxWidth: 400, maxWidth: 400,
), ),
child: SingleChildScrollView( child: IntrinsicHeight(
child: IntrinsicHeight( child: AppFlowyEditor(
child: AppFlowyEditor( editorState: editorState,
shrinkWrap: true,
autoScrollEdgeOffset: 24,
editorStyle: const EditorStyle.desktop(
padding: EdgeInsets.symmetric(horizontal: 8),
),
blockComponentBuilders: _buildBlockComponentBuilders(),
editorScrollController: EditorScrollController(
editorState: editorState, editorState: editorState,
disableAutoScroll: true,
shrinkWrap: true, shrinkWrap: true,
editorStyle: const EditorStyle.desktop(
padding: EdgeInsets.symmetric(horizontal: 8),
),
blockComponentBuilders: _buildBlockComponentBuilders(),
editorScrollController: EditorScrollController(
editorState: editorState,
shrinkWrap: true,
),
), ),
), ),
), ),