pretty_diff_text 2.0.0 copy "pretty_diff_text: ^2.0.0" to clipboard
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';
46
likes
140
pub points
84%
popularity

Publisher

unverified uploader

PrettyDiffText is wrapper of RichText which shows differences between two texts visually. It uses Google's diff-match-patch library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

diff_match_patch, flutter

More

Packages that depend on pretty_diff_text