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.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add diff_viewWith Flutter:
$ flutter pub add diff_viewThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
diff_view: ^0.2.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:diff_view/diff_view.dart';