rich_editor
0.5.0, released 3 weeks ago by jideguru.dev
WYSIWYG rich text editor widget for Flutter using a WebView.
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.
- fleather
A clean, minimalistic and collaboration-ready rich text editor for Flutter.
80Compare - syncfusion_flutter_datagrid
DataGrid widget for tabular data with editing, sorting, paging and export.
91Compare - super_text_layout
Configurable and extensible text display for custom decorations in Flutter.
88Compare - markdown_editor_live
WYSIWYG markdown editor widget with live syntax highlighting
52Compare
Works with
Packages commonly used together with rich_editor: ones it builds on, ones built on it, and its own family.
- xmlrich_editor depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- image_pickerrich_editor depends on itFlutter plugin for selecting images/videos from the gallery and capturing new ones via camera.
- flutter_inappwebviewrich_editor depends on itAdd inline WebViews, headless WebViews, and in-app browser windows.
- flutter_colorpickerrich_editor depends on itHSV, HSL, RGB, and Material color picker widgets for Flutter applications.