diff_view 0.2.0
diff_view: ^0.2.0 copied to clipboard
A fast side-by-side and unified diff view for Flutter, like JetBrains IDEs' diff viewer, with ribbons, synced scrolling, word highlights, folding and line selection.
0.2.0 #
UnifiedDiff: a single-column view driven by the sameDiffViewController, with old and new line numbers, deleted then inserted lines per change, folds, inlays, gutter selection with copy and syntax colours.UnifiedRowsmaps unified rows to old and new lines;RowSelectionandRowSelectionControllerhold the unified selection.jumpToLine,viewportYOfLineandensureLineVisibleact on the unified view when it is the one laid out. Switching views keeps the line in place.GutterMetrics.unifiedandDiffPaintResources.unifiedGutterlay out the two-number gutter;DiffPaneViewporttakesunified.DiffThemeData.unifiedDeletedLineandunifiedDeletedWordtint removed lines in the unified view; unset, they're the side-by-side colours.- The example app has a Split/Unified switch.
selectionChangesandgeometryChangesalso fire for the unified view.DiffPaneis aStatelessWidget.- Fix: an inlay added to a file shorter than the viewport no longer scrolls the view past its end and springs back.
0.1.0 #
- First release:
SideBySideDiff,DiffViewController,TextDiffand the pagingDiffLineSource.