Skip to main content

diff_view 0.2.0 copy "diff_view: ^0.2.0" to clipboard
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 same DiffViewController, with old and new line numbers, deleted then inserted lines per change, folds, inlays, gutter selection with copy and syntax colours.
  • UnifiedRows maps unified rows to old and new lines; RowSelection and RowSelectionController hold the unified selection.
  • jumpToLine, viewportYOfLine and ensureLineVisible act on the unified view when it is the one laid out. Switching views keeps the line in place.
  • GutterMetrics.unified and DiffPaintResources.unifiedGutter lay out the two-number gutter; DiffPaneViewport takes unified.
  • DiffThemeData.unifiedDeletedLine and unifiedDeletedWord tint removed lines in the unified view; unset, they're the side-by-side colours.
  • The example app has a Split/Unified switch.
  • selectionChanges and geometryChanges also fire for the unified view.
  • DiffPane is a StatelessWidget.
  • 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, TextDiff and the paging DiffLineSource.
0
likes
0
points
3.47k
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#diff #code #viewer #widget #desktop

License

unknown (license)

Dependencies

flutter, meta

More

Packages that depend on diff_view