flutter_quill_delta_from_html
1.5.3, released a year ago by an unverified publisher
Converts HTML strings to Quill Delta format for use with Quill editor.
What it does
This package parses HTML input and produces a list of Quill Delta operations that represent the same content. It supports a wide range of HTML tags, CSS styles, and custom block handlers.
AI-written summary of version 1.5.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- Importing HTML content into a Quill editor
- Migrating web‑based rich text to a Flutter app
- Creating custom block embeds from HTML
Skip it when
- You need a full HTML renderer or editor that works directly with HTML
- The content contains complex table layouts beyond basic support
Strengths
- Wide tag and CSS support, including line‑height, colors, and text formatting
- Custom block handling via CustomHtmlPart
- No build_runner or code generation required
Weaknesses
- Basic table support only, may not handle complex tables
- No direct support for rendering HTML, only conversion to Delta
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
import 'package:flutter_quill_delta_from_html/flutter_quill_delta_from_html.dart';
void main() {
String html = '<p style="line-height:2.0">Hello, <b>world</b>!</p>';
var delta = HtmlToDelta().convert(html, transformTableAsEmbed: false);
print(delta);
}Alternatives
Packages that do the same job and could replace flutter_quill_delta_from_html.
- markdown_quill
Convert between quill delta format and markdown.
48Compare - delta_to_html
Convert Delta format to HTML strings.
49Compare - parchment
Platform-agnostic rich text document model based on Delta format.
69Compare - moment_dart
Multi-purpose immutable DateTime subclass with support for multiple localizations and human-readable formats
66Compare
Works with
Packages commonly used together with flutter_quill_delta_from_html: ones it builds on, ones built on it, and its own family.
- htmlflutter_quill_delta_from_html depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- dart_quill_deltaflutter_quill_delta_from_html depends on itDart port of Quill Delta JSON format for rich-text documents
- flutter_quillBuilt on flutter_quill_delta_from_htmlA rich text WYSIWYG editor component and toolbar for Flutter apps.