Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Gutter does not scroll with the code editor #288

Open
livtanong opened this issue Feb 4, 2025 · 6 comments
Open

Gutter does not scroll with the code editor #288

livtanong opened this issue Feb 4, 2025 · 6 comments

Comments

@livtanong
Copy link

How to reproduce:

  1. Set CodeField expands: true
  2. Enable line numbers for easier visibility
  3. Add more lines than can fit in the view to trigger the scroll view
  4. Scroll the code field
  5. You'll see that the gutter remains stationary.

Insights

Inspection of the code reveals that the gutter is inside a Row, alongside the editing field. The scroll view is inside the editing field, which means that as the current structure stands, the gutter can never scroll, with code. A significant refactor will need to be done, in order for the gutter to behave as expected.

@AthulNoobie
Copy link

same issue. Any solution yet?

@UbayGD
Copy link
Contributor

UbayGD commented Mar 13, 2025

I'm having a look at this, although I haven't had much time. Hopefully I can do a PR soon 🤞

@deba33
Copy link

deba33 commented Mar 15, 2025

same issue; any alternatives?

@livtanong
Copy link
Author

same issue; any alternatives?

What I've been doing is setting expands: false and wrapping the code editor in a SingleChildScrollView, so that the entire editor scrolls.

@deba33
Copy link

deba33 commented Mar 16, 2025

same issue; any alternatives?

What I've been doing is setting expands: false and wrapping the code editor in a SingleChildScrollView, so that the entire editor scrolls.

Will try that for sure.
Edit: Scrolling on the Gutter works. But Gutter did not properly align with the code lines.

@UbayGD
Copy link
Contributor

UbayGD commented Mar 20, 2025

same issue; any alternatives?

What I've been doing is setting expands: false and wrapping the code editor in a SingleChildScrollView, so that the entire editor scrolls.

Will try that for sure. Edit: Scrolling on the Gutter works. But Gutter did not properly align with the code lines.

I think that in this issue someone post a workaround #286

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants