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

[Question] How to set the maximum number of rows or height displayed by AppFlowyEditor, especially when displaying multiple AppFlowyEditors in a listview, and preferably with Ellipsis of #820

Open
peter100u opened this issue Jun 13, 2024 · 4 comments

Comments

@peter100u
Copy link

Description

How to set the maximum number of rows or height displayed by AppFlowyEditor, especially when displaying multiple AppFlowyEditors in a listview, and preferably with Ellipsis of

Impact

Scene display of note lists, rather than just editing notes

Additional Context

No response

@peter100u peter100u changed the title [Quest] [Quest] How to set the maximum number of rows or height displayed by AppFlowyEditor, especially when displaying multiple AppFlowyEditors in a listview, and preferably with Ellipsis of Jun 13, 2024
@peter100u peter100u changed the title [Quest] How to set the maximum number of rows or height displayed by AppFlowyEditor, especially when displaying multiple AppFlowyEditors in a listview, and preferably with Ellipsis of [Question] How to set the maximum number of rows or height displayed by AppFlowyEditor, especially when displaying multiple AppFlowyEditors in a listview, and preferably with Ellipsis of Jun 13, 2024
@realth000
Copy link

Same question, how to set maxlines like what we can do in TextField.

I use AppFlowy editor in a chat UI, now i'm using BoxConstraints to limit max height but it's better if set with line numbers.

Tried Shrikwrap but did not work.

@resfandiari
Copy link

same question

@resfandiari
Copy link

I founded solution only wrap it with IntrinsicHeight widget.

@LucasXu0
Copy link
Collaborator

There's no way to set the maximum number of lines for appflowy_editor right node. But for the height, you can use IntrinsicHeight to wrap the editor.

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

4 participants