parchment_delta
1.0.0, released 3 years ago by an unverified publisher
Dart implementation of Quill Delta format for rich-text editing
What it does
Provides a Delta class to represent, compose, and transform rich-text changes in the Quill.js format. It can be used to build or integrate a rich-text editor in Dart applications.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to manipulate or serialize Quill Delta documents in a Dart/Flutter app
- You are building a custom editor or syncing rich-text changes with a backend that uses Quill format
Skip it when
- You are using a full-featured editor widget that already handles Delta internally
- You only need simple text editing without Delta semantics
Strengths
- Simple API, no heavy dependencies
- Supports compose, retain, delete operations
- Cross-platform (dart, web, mobile, desktop)
Weaknesses
- No UI components
- Limited to Delta format only
- No built-in persistence or collaboration features
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
import 'package:parchment_delta/parchment_delta.dart';
void main() {
var doc = Delta()..insert('Hello world', {'h': '1'});
var change = Delta()
..retain(6)
..delete(5)
..insert('Earth');
var result = doc.compose(change);
print(result);
}Alternatives
Packages that do the same job and could replace parchment_delta.
- dart_quill_delta
Dart port of Quill Delta JSON format for rich-text documents
50Compare - attributed_text
Text with metadata spans for easy text editing and styling.
72Compare - clipboard
Clipboard manager with text, HTML, and image support across Android, iOS, Web, and Windows.
63Compare - flutter_quill_delta_from_html
Converts HTML strings to Quill Delta format for use with Quill editor.
55Compare
Works with
Packages commonly used together with parchment_delta: ones it builds on, ones built on it, and its own family.
- quiverparchment_delta depends on itA set of utility libraries for Dart containing collections, async tools, and testing helpers.
- diff_match_patchparchment_delta depends on itDart library implementing diff, match and patch algorithms for plain text.
- parchmentBuilt on parchment_deltaPlatform-agnostic rich text document model based on Delta format.
- fleatherBuilt on parchment_deltaA clean, minimalistic and collaboration-ready rich text editor for Flutter.