syntax_flutter 0.0.10
syntax_flutter: ^0.0.10 copied to clipboard
Flutter widgets for syntax: read-only highlighted code and diff views, driven by TextMate grammars and VS Code themes.
0.0.10 #
- Requires
syntax_core0.0.3, whose themes start from the editor colors and whose diff labels are readable on hunk headers. - Retained rows stay mounted across layout resets and distant jumps, and a fixed-extent list reuses a child only for the exact index it belongs to.
0.0.9 #
HorizontalCodewaits for scroll dimensions before synchronizing a retained row that changed while offscreen. It synchronizes normally when laid out.
0.0.8 #
- Preserve unchanged row elements across source and layout updates. Updating streamed content no longer remounts already displayed paragraphs; measured offsets still refresh when the layout changes.
0.0.7 #
- Keep only the explicitly requested viewport rows alive during native text selection. Flutter's automatic selection retention no longer keeps every intermediate selected row mounted.
0.0.6 #
- Upward scrolling after a far jump keeps existing row elements and state. Extending the virtual list remaps row offsets instead of remounting it.
IndexedCodeViewport.retainedRowskeeps explicitly named row identities alive during scrolling, for example a text selection's endpoints. Releasing those identities lets offscreen rows be disposed normally.- Export
RowSelectionDelegatefor selection across virtualized code cells.
0.0.5 #
IndexedCodeViewportkeeps the first visible row, and the rows after it, in place when the layout changes: a newlayoutKey,countorestimatedHeight, or a new width. Since 0.0.4, a row the list kept through such a change was not measured again, so its height fell back to the estimate and the rows below it landed off by the difference, as a file's header did when its rows were loaded below it.
0.0.4 #
- Requires
syntax_core0.0.2, whichPatchViewnow relies on to color parsed patches between frames. IndexedCodeViewportkeeps the rows it has built while it scrolls. Its list of rows used to be keyed by its first row, which changes on nearly every scrolled frame, so every visible row was built again, element, state and text layout included. The list now starts at a row that moves only on a jump past everything built, a layout change, or scrolling above it (then a screen higher at once), and the extent of the rows after it comes from their measured and estimated heights. When a row built before comes back above the anchor with a new height, the list starts again so the rows above it stay where their heights put them.- Rows are no longer rebuilt just because the viewport scrolled, and a row's
Statenow survives scrolling. Abuilderwhose rows depend on state outside the widget tree must rebuild the viewport's parent (or change itslayoutKey) when that state changes.
0.0.3 #
Depends on syntax_core instead of syntax_darts.
0.0.2 #
Depends on syntax_darts instead of syntax_core.