appflowy-editor icon indicating copy to clipboard operation
appflowy-editor copied to clipboard

[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

Open peter100u opened this issue 1 year ago • 4 comments

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 avatar Jun 13 '24 13:06 peter100u

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.

realth000 avatar Jun 13 '24 15:06 realth000

same question

resfandiari avatar Jun 18 '24 13:06 resfandiari

I founded solution only wrap it with IntrinsicHeight widget.

resfandiari avatar Jun 18 '24 14:06 resfandiari

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.

LucasXu0 avatar Jun 19 '24 04:06 LucasXu0