flutter-code-editor
flutter-code-editor copied to clipboard
Gutter does not scroll with the code editor
How to reproduce:
- Set CodeField
expands: true - Enable line numbers for easier visibility
- Add more lines than can fit in the view to trigger the scroll view
- Scroll the code field
- 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.