editorjs_flutter_view 0.0.1 copy "editorjs_flutter_view: ^0.0.1" to clipboard
editorjs_flutter_view: ^0.0.1 copied to clipboard

A Flutter widget to render JSON content from Editor.js as native Flutter widgets.

editorjs_flutter_view #

editorjs_flutter_view is a Flutter widget that renders JSON content produced by Editor.js into native Flutter widgets.

Features #

  • Basic support for block types: paragraph, header
  • Easily extensible for other types (image, list, etc.)

Installation #

Add this to your pubspec.yaml:

dependencies:
  editorjs_flutter_view: ^0.0.1

Then run:

flutter pub get

Basic Usage #

import 'package:editorjs_flutter_view/editorjs_flutter_view.dart';

const jsonContent = '''
{
  "blocks": [
    {
      "type": "header",
      "data": {
        "text": "Hello Editor.js",
        "level": 2
      }
    },
    {
      "type": "paragraph",
      "data": {
        "text": "This is a paragraph rendered in Flutter."
      }
    }
  ]
}
''';

EditorJSView(jsonString: jsonContent);

Example #

See the example/ folder for a complete demo.

Contribution #

Contributions are welcome. Fork the project, create a branch, and submit a pull request.

License #

MIT

0
likes
140
points
33
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter widget to render JSON content from Editor.js as native Flutter widgets.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on editorjs_flutter_view