Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] When using Editor in new projects a Range Error is thrown if no header is passed but a footer is passed. #558

Closed
MayurSMahajan opened this issue Oct 27, 2023 · 0 comments
Assignees

Comments

@MayurSMahajan
Copy link
Contributor

Bug Description

When using AppFlowyEditor as a package in my Codeblock project. I noticed that a range error occurs when I initialize my Editor as follows:

final editorState = EditorState(
  document: Document(root: pageNode(children: [codeBlockNode()])),
);
//...
Widget build(BuildContext context) {
    return AppFlowyEditor(
      editorState: editorState,
      autoFocus: true,
      characterShortcutEvents: characterShortcutEvents,
      commandShortcutEvents: commandShortcutEvents,
      blockComponentBuilders: blockComponentBuilders,
      footer: const SizedBox(height: 200),
    );
  }

How to Reproduce

I am not sure how one can reproduce this error.

  1. Initialize an AppFlowyEditor instance with only a footer and no header.
  2. Try running the project.

Expected Behavior

No range error should occur

Operating System

Windows11

AppFlowy Editor Version(s)

1.4.4

Screenshots

image

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants