akvelon / flutter-code-editor

Flutter Code Editor is a multi-platform code editor supporting syntax highlighting, code blocks folding, autocompletion, read-only code blocks, hiding specific code blocks, themes, and more.
https://akvelon.com
Apache License 2.0
213 stars 54 forks source link

Line Numbers are not aligned with code #250

Open deva666 opened 1 year ago

deva666 commented 1 year ago

Version 0.3.0 Line numbers and folding handles are not vertically aligned with code. See screenshot.

image
Somtobro commented 1 year ago

This is true

junaid1460 commented 1 year ago

Give explicit text style with height in it

alexeyinkin commented 1 year ago

@deva666 @Somtobro can you please check again with v0.3.1 and Flutter 3.13.9? If it persists, please tell your platform and send the whole minimal reproducible example.

deva666 commented 1 year ago

Same problem with the latest version Reproducible on Android and iOS (both simulator and real device) Run your own example 02.

Another problem is that CodeField does not scroll horizontally on iOS. Check your example 02, you can scroll vertically but not horizontally. Works fine on Android though.

Screenshot 2023-11-14 at 09 34 03

sahibul-nf commented 5 months ago

This help for me: https://github.com/akvelon/flutter-code-editor/issues/261#issuecomment-1963836490