flutter-code-editor icon indicating copy to clipboard operation
flutter-code-editor copied to clipboard

Gutter does not scroll with the code editor

Open livtanong opened this issue 9 months ago • 6 comments

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.

livtanong avatar Feb 04 '25 08:02 livtanong