rich_form_field 0.1.0
rich_form_field: ^0.1.0 copied to clipboard
Rich text form field with toolbar, styling ranges, and HTML codec output.
Rich text form field with a formatting toolbar, inline style ranges, and HTML codec output. Designed for simple rich text input in Flutter forms.
Features #
HtmlRichTextFormFieldwith bold, italic, underline, list, and color tools.HtmlRichTextControllerthat tracks style ranges and produces HTML output.- Pluggable
RichTextCodecfor alternative save formats. - HTML parsing backed by
package:htmland a simple tag subset.
Getting started #
Add the dependency to pubspec.yaml:
dependencies:
rich_form_field: ^0.1.0
Usage #
HtmlRichTextFormField(
strings: const RichTextEditorStrings(
bold: 'Bold',
italic: 'Italic',
underline: 'Underline',
list: 'List',
textColor: 'Color',
clear: 'Clear',
cancel: 'Cancel',
),
onChanged: (html) {
// Persist the HTML output.
},
)
See the full example app in example/lib/main.dart.