Skip to content
pubscout

rich_editor

0.5.0, released 3 weeks ago by jideguru.dev

WYSIWYG rich text editor widget for Flutter using a WebView.

$ flutter pub add rich_editor
Source repository

What it does

Provides a rich‑text editing surface with formatting, lists, images, videos, links and more. Content can be retrieved or set as HTML or Tiptap/ProseMirror JSON. A customizable toolbar and theming support are included.

AI-written summary of version 0.5.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a full‑featured rich‑text editor on Android/iOS
  • You want HTML/JSON output and a customizable toolbar
  • You need RTL support and theme‑aware styling

Skip it when

  • You require a pure‑Dart editor without a WebView
  • You target web or desktop platforms
  • You need a minimal bundle size

Strengths

  • Extensive formatting options
  • Customizable and localizable toolbar
  • HTML and JSON content handling
  • Follows app theme and supports RTL

Weaknesses

  • Depends on flutter_inappwebview, increasing app size
  • Requires native setup (Info.plist, permissions)
  • Limited to mobile platforms

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
4

Configure flutter_inappwebview and image_picker per their docs, add iOS photo library usage description and NSAllowsLocalNetworking in Info.plist, ensure Android System WebView 80+ is available.

final controller = RichEditorController();
RichEditor(
  controller: controller,
  value: '<p>Hello</p>',
  editorOptions: const RichEditorOptions(
    placeholder: 'Start typing',
    barPosition: BarPosition.top,
  ),
  onChanged: (html) => print(html),
  getImageUrl: (image) async {
    final base64 = base64Encode(await image.readAsBytes());
    return 'data:image/png;base64,$base64';
  },
);

Alternatives

Packages that do the same job and could replace rich_editor.

Works with

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