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

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

slate_render #

slate_renderer 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 #

  flutter_native_splash: ^0.0.1

Don't forget to flutter pub get.

Usage #

For small view

    Padding(
      padding: const EdgeInsets.only(top: 8.0, bottom: 8.0),
      child: SlateRenderer(
        data: description,
        disableLink: true,(optional)
        maxLine: 5,(optional)
      ),
    ),

For Large View

    SlateRenderer(
      data: description,
      disableLink: false,(optional)
      <!-- maxLine: 5 -->(optional)
    ),

Additional information #

Acknowledgments #

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

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
0
points
323
downloads

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

Documentation

Documentation

License

unknown (license)

Dependencies

cached_network_image, flutter, freezed_annotation, json_annotation, url_launcher

More

Packages that depend on slate_render