flutter-quill icon indicating copy to clipboard operation
flutter-quill copied to clipboard

how to set overflow when i have fixed size.Such as set TextOverflow.ellipsis.

Open dahvlhldle opened this issue 1 year ago • 2 comments

how to set overflow when i have fixed size.Such as set TextOverflow.ellipsis.

dahvlhldle avatar Jun 22 '23 02:06 dahvlhldle

Any updates on this?

I'm trying to achieve the same thing. The editor is read-only, and I am building a preview for the text. Though, if scrollable is set to false, the text just overflow (attachment). Otherwise, it'll scroll, which is not the intended behaviour.

As far as I can tell, use Text or RichText is not an option as it would be required to adapt to every single possible change to the text (bold, italic, lists, etc.).

Screenshot_1696871152

WillianSalceda avatar Oct 09 '23 17:10 WillianSalceda

you need to wrap your editor in a container and set its clip behavior like below:

Container(
     clipBehavior: Clip.antiAlias,
     child: QuilEditor.basic(...),
)

salahmak avatar Dec 17 '23 13:12 salahmak