Skip to content
pubscout

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.

WASM-ready
$ flutter pub add flutter_quill_delta_from_html
Source repository

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.

Works with

Packages commonly used together with flutter_quill_delta_from_html: ones it builds on, ones built on it, and its own family.