singerdmx / flutter-quill

Rich text editor for Flutter
https://pub.dev/packages/flutter_quill
MIT License
2.6k stars 839 forks source link

line break problems #2285

Open jonasbernardo opened 1 month ago

jonasbernardo commented 1 month ago

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 ```console [Paste your logs here] ```

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

jonasbernardo commented 1 month ago

@CatHood0 @singerdmx