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

Horizontal Scrollbar #281

Open TechnicJelle opened 2 months ago

TechnicJelle commented 2 months ago

I could really use a horizontal scrollbar, because sometimes the code is pretty wide.

I don't want to use text wrapping, either, because that does not look great on code. And besides, it's not even implemented yet, anyway. #178

In a fork of this repository, I tried adding it myself, but I don't think I'm good enough at Flutter, yet, to be able to do it properly. Because right now, the scroll bar is only visible at the bottom of the scrollview, instead of always visible at the bottom of the screen...

https://github.com/user-attachments/assets/87883032-a1d9-4b10-a6ae-d9f712342289

I also tried making it use a SingleChildTwoDimensionalScrollView, but that had its own layouting issues. I do think this would be the best working solution, though.