flutter_blocknote_editor 0.0.9 copy "flutter_blocknote_editor: ^0.0.9" to clipboard
flutter_blocknote_editor: ^0.0.9 copied to clipboard

A Flutter package (beta) that embeds BlockNoteJS inside a WebView with bidirectional communication, transaction batching, and undo/redo safety.

0.0.9 #

  • Added custom schema support with schema config, custom JavaScript/CSS injection, and asset-based scripts/styles for custom blocks, inline content, and styles.
  • Added schema config messaging and JavaScript evaluation support in the WebView bridge.
  • Refactored Dart models to remove Freezed codegen, add manual JSON serialization, and introduce BlockNoteBlockContent for inline/table content with custom block types.
  • Updated document loading to preload schema config and custom assets when required.
  • Updated embedded web editor bundle and example assets for custom schema demos.

0.0.8 #

  • Added new block types to Dart models: quote, toggle list, check list, and audio.
  • Added typed slash command helpers with safe content escaping.
  • Updated example slash command usage to the new helpers.
  • Added eager gesture handling for the embedded WebView.
  • Updated toolbar popup handling to fully hide intercepted popups.
  • Prevented popup portal styling from touching Flutter-hidden popups.
  • Marked toggle heading options as toggleable in the web toolbar.
  • Updated embedded web editor bundle (assets/web/editor.js).
  • Disabled unnecessary_ignore to avoid generated-file lint noise.

0.0.7 #

  • Improved WebView sizing by using layout constraints for available height.
  • Added a modal bottom sheet editor demo in the example app.
  • Added a React error boundary and editable handling for the embedded editor.
  • Refined selection auto-scroll to avoid unnecessary scrolls when the keyboard is not visible.
  • Improved toolbar popup block type fallback handling for non-JSON values.
  • Switched custom slash command execution to a Function handler.
  • Added analyzer excludes for generated Dart files.
  • Added ESLint/Prettier tooling and scripts for the web editor.
  • Rebuilt embedded web editor assets (assets/web).

0.0.6 #

Breaking Changes and Code Quality Improvements

  • BREAKING: Removed deprecated fontFamily field from BlockNoteTheme
    • Use font field with BlockNoteFontConfig instead
    • Removed redundant effectiveFontFamily getter (use theme.font?.family directly)
  • Migrated model classes to use sealed class instead of class for better type safety
    • BlockNoteInlineContent and BlockNoteBlock now use sealed classes
    • Provides better exhaustiveness checking and type safety
  • Fixed linting warnings for JsonKey annotations on Freezed constructor parameters

0.0.5-beta #

Major Refactoring and Improvements

  • BREAKING: Migrated all model classes from JsonSerializable to Freezed
    • All models now use @freezed annotation for better immutability and code generation
    • Removed all custom fromJson/toJson converters - freezed handles serialization automatically
    • Models now have built-in copyWith methods and better type safety
  • BREAKING: Fixed styles type from Map<String, bool> to Map<String, dynamic>
    • Now correctly supports both boolean values (bold, italic, underline, strike) and string values (textColor, backgroundColor)
    • Matches BlockNoteJS official schema
  • Added comprehensive test suite for document JSON parsing
  • Updated example app to load document from JSON file instead of empty document
  • Improved code quality and maintainability

0.0.4-beta #

Documentation Improvements

  • Added BlockNoteJS banner image and links to BlockNote resources
  • Enhanced README with BlockNote feature descriptions
  • Added credits section acknowledging BlockNote, Prosemirror, and Tiptap
  • Improved README structure and visual presentation

0.0.3-beta #

Code Quality Improvements

  • Fixed deprecated API usage: replaced color.value with color.toARGB32()
  • Added ignore comments for deprecated fontFamily field usage (kept for backwards compatibility)
  • Improved pub.dev static analysis score

0.0.2-beta #

Documentation and Metadata Updates

  • Added pub.dev URL and repository links to README
  • Added issue tracker link to pubspec.yaml
  • Added topics/tags for better discoverability on pub.dev
  • Updated README with improved links and metadata

0.0.1-beta #

Beta Release - This is the initial beta release of Flutter BlockNote Editor.

Features #

  • WebView integration with BlockNoteJS
  • Bidirectional communication between Flutter and JavaScript
  • Transaction batching system for efficient updates
  • Undo/redo safety implementation
  • Support for standard BlockNote blocks (paragraph, heading, list, etc.)
  • Custom theme support
  • Custom toolbar configuration
  • Custom slash commands
  • Read-only mode support
  • Debug logging support

Known Issues #

  • This is a beta version with potential bugs
  • BlockNoteJS has known bugs (see GitHub Issues)
  • Critical iOS Safari bug: overlapping menus on text selection (BlockNoteJS issue #2122)
7
likes
0
points
818
downloads

Publisher

verified publishernarek-manukyan.dev

Weekly Downloads

A Flutter package (beta) that embeds BlockNoteJS inside a WebView with bidirectional communication, transaction batching, and undo/redo safety.

Repository (GitHub)
View/report issues

Topics

#blocknote #editor #rich-text #text-editor #block-editor

License

unknown (license)

Dependencies

flutter, flutter_inappwebview, flutter_svg, shelf, shelf_static

More

Packages that depend on flutter_blocknote_editor