rich_form_field 0.1.0 copy "rich_form_field: ^0.1.0" to clipboard
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 #

  • HtmlRichTextFormField with bold, italic, underline, list, and color tools.
  • HtmlRichTextController that tracks style ranges and produces HTML output.
  • Pluggable RichTextCodec for alternative save formats.
  • HTML parsing backed by package:html and 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.

Additional information #

0
likes
0
points
322
downloads

Publisher

verified publisherasion.dev

Weekly Downloads

Rich text form field with toolbar, styling ranges, and HTML codec output.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, html

More

Packages that depend on rich_form_field