bullet_editor 0.1.4 copy "bullet_editor: ^0.1.4" to clipboard
bullet_editor: ^0.1.4 copied to clipboard

A structured rich text editor for Flutter built on a single TextField. Supports headings, lists, tasks, code blocks, block quotes, and full markdown round-trip serialization.

0.1.4 #

Bug fixes #

  • Fix keyboard shortcuts (Cmd+B, Cmd+I, Shift+Enter, etc.) not working in host apps. Moved all key handling from FocusNode.onKeyEvent (which EditableText overwrites) to Shortcuts + Actions widgets.
  • Fix markdown decoder nesting indented list items under headings/paragraphs. Blocks whose parent type has canHaveChildren: false are now collapsed to sibling level during decode.

0.1.3 #

Improvements #

  • Moved rich copy/cut business logic from BulletEditor widget to EditorController (richCopy(), richCut(), deleteSelection()).
  • deleteSelection() resets non-default block types to paragraph when the selection starts at offset 0.
  • Tab/Shift+Tab indent/outdent, Cmd+B/I/Shift+S inline style shortcuts, and rich copy/cut are now handled internally by BulletEditor via Actions overrides — no host-app wiring needed.

Tests #

  • Added unit tests for deleteSelection, richCopy, and richCut.

0.1.1 #

Bug fixes #

  • MarkdownCodec is now generic (MarkdownCodec<B>) so decode() returns Document<B> instead of Document<dynamic>. Eliminates runtime type cast errors when using typed schemas.

Features #

  • Shift+Enter inserts a soft line break (\n) within a block instead of splitting into a new block. Works on all non-void block types.
  • Markdown codec encodes/decodes CommonMark hard line breaks ( \n and \\\n).
  • Paragraphs now have spacingBefore: 0.3 for visual separation between blocks.

0.1.0 #

Initial public release.

Block types #

  • Paragraph, Heading 1-6, Bullet list, Numbered list, Task item (checkbox), Block quote, Fenced code block, Divider

Inline styles #

  • Bold, Italic, Strikethrough, Inline code, Links, Autolinks

Editor features #

  • Markdown shortcuts (type # , - , > , ```, ---, etc.)
  • Inline wrap shortcuts (**, *, `, ~~)
  • Keyboard shortcuts (Cmd+B, Cmd+I, Cmd+Shift+S)
  • Nested blocks via Tab/Shift+Tab
  • Undo/redo with selection restoration
  • Schema-driven architecture with custom block/inline support

Markdown codec #

  • CommonMark-aligned decode and encode
  • Backslash escape handling
  • Fence-aware block splitting for code blocks
  • Round-trip fidelity for ATX headings, thematic breaks, and emphasis
0
likes
0
points
551
downloads

Publisher

unverified uploader

Weekly Downloads

A structured rich text editor for Flutter built on a single TextField. Supports headings, lists, tasks, code blocks, block quotes, and full markdown round-trip serialization.

Repository (GitHub)
View/report issues

Topics

#editor #markdown #rich-text #wysiwyg #flutter

License

unknown (license)

Dependencies

flutter

More

Packages that depend on bullet_editor