flutter-quill
flutter-quill copied to clipboard
how to set overflow when i have fixed size.Such as set TextOverflow.ellipsis.
how to set overflow when i have fixed size.Such as set TextOverflow.ellipsis.
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.).
you need to wrap your editor in a container and set its clip behavior like below:
Container(
clipBehavior: Clip.antiAlias,
child: QuilEditor.basic(...),
)