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

line break problems

Open jonasbernardo opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

Flutter Quill version

10.7.7

Steps to reproduce

editor does not register line break \n when the user is typing and reaches the end of the line, as in the video it shows at the end only when I press the enter button on the keyboard does it register the line break, but when the line break happens without pressing enter, the line break is not registered, this generated several alignment problems in my project, when the user migrates their data from a smaller device to a larger one, everything becomes misaligned, as the visual line breaks that existed were not registered by the editor

Expected results

line breaks viewed by users are saved correctly

Actual results

the line breaks that the user sees were not registered

Additional Context

Screenshots / Video demonstration

[Upload media here]

Logs
[Paste your logs here]

https://github.com/user-attachments/assets/36d39835-443c-4244-863b-35beb69682e5

jonasbernardo avatar Sep 25 '24 12:09 jonasbernardo

@CatHood0 @singerdmx

jonasbernardo avatar Sep 25 '24 13:09 jonasbernardo

This isn't an editor issue. It's something Flutter does natively by default. When the spans of RichText is about to exceed the width of the screen, window, or even the box containing the widget, RichText automatically creates the line break. However, this is done internally, and we don't have access to it.

So, I'll close this issue since it's not related to Flutter Quill.

CatHood0 avatar Mar 13 '25 04:03 CatHood0