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,12 +32,11 @@ class AutoExpandEditor extends StatelessWidget {
maxHeight: 360, maxHeight: 360,
maxWidth: 400, maxWidth: 400,
), ),
child: SingleChildScrollView(
child: IntrinsicHeight( child: IntrinsicHeight(
child: AppFlowyEditor( child: AppFlowyEditor(
editorState: editorState, editorState: editorState,
disableAutoScroll: true,
shrinkWrap: true, shrinkWrap: true,
autoScrollEdgeOffset: 24,
editorStyle: const EditorStyle.desktop( editorStyle: const EditorStyle.desktop(
padding: EdgeInsets.symmetric(horizontal: 8), padding: EdgeInsets.symmetric(horizontal: 8),
), ),
@ -52,7 +51,6 @@ class AutoExpandEditor extends StatelessWidget {
), ),
), ),
), ),
),
); );
} }