pretty_diff_text 2.0.0 pretty_diff_text: ^2.0.0 copied to clipboard
PrettyDiffText is wrapper of RichText which shows differences between two texts visually. It uses Google's diff-match-patch library.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add pretty_diff_text
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
pretty_diff_text: ^2.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:pretty_diff_text/pretty_diff_text.dart';