pretty_diff_text 2.1.0 copy "pretty_diff_text: ^2.1.0" to clipboard
pretty_diff_text: ^2.1.0 copied to clipboard

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

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.1.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';
56
likes
160
points
7.9k
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

diff_match_patch, flutter

More

Packages that depend on pretty_diff_text