slate_render 0.0.4 copy "slate_render: ^0.0.4" to clipboard
slate_render: ^0.0.4 copied to clipboard

A Flutter package to parse and render Slate Editor JSON into rich Flutter widgets.

slate_render #

slate_render is a Flutter package that helps you render content created with the Slate Editor into rich Flutter widgets.

Features #

It parses the JSON output of Slate.js and converts it into clean, customizable UI components such as:

πŸ“„ Paragraphs & Headings

πŸ“ Lists (numbered & bulleted)

πŸ”— Links

πŸ–ΌοΈ Images

✨ Text styles (bold, italic, underline, etc.)

Why use this package?

βœ… Simple API – pass your Slate JSON and get widgets

🎨 Customizable styling for text, links, and blocks

⚑ Lightweight and fast

🧩 Extensible – add your own node/mark renderers

Perfect for blogs, CMS pages, documentation, or any app that needs to render rich text content from a Slate Editor.

Getting started #

First, add slate_render as a dependency in your pubspec.yaml file.

  slate_render: ^0.0.4

Don't forget to flutter pub get.

Usage #

For small view where we want to display small portion of our content(like in list of widget) pass max Line as you want you can aslo disable links to not click on small view

     SlateRenderer(
        data: description,(Map<String, dynamic>)
        disableLink: true,(optional)
        maxLine: 5,(optional)
      ),

For Large view you can skip passing maxLine disableLink is also optional

    SlateRenderer(
      data: description,(Map<String, dynamic>)
      disableLink: false,(optional)
    ),

Additional information #

Acknowledgments #

This package was originally created by Farman Work and also maintained by Farman Work.

Bugs or Requests #

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket. Pull request are also welcome.

4
likes
160
points
355
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

A Flutter package to parse and render Slate Editor JSON into rich Flutter widgets.

Repository (GitHub)
View/report issues

Topics

#slateditor #editor #flutter #dart

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

cached_network_image, flutter, freezed_annotation, json_annotation, url_launcher

More

Packages that depend on slate_render