Skip to content
pubscout

cr_json_widget

1.1.1, released 4 years ago by cleveroad.com

A Flutter widget that visualizes JSON data and tree structures.

WASM-ready
$ flutter pub add cr_json_widget
Source repository

What it does

Visualizes JSON and custom tree structures where any node can be a widget. Provides standard and high-performance recycler widget variants for handling large JSON files.

AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display or inspect JSON data inside your Flutter app.
  • You want to render custom tree structures with interactive nodes.

Skip it when

  • You need complex data manipulation or editing capabilities beyond simple visualization.
  • You are working with extremely large JSON structures without using the recycler variants.

Strengths

  • Supports both standard views and high-performance recycler widgets/slivers for large JSONs.
  • Customizable node icons, indentations, and colors for different data types.

Weaknesses

  • Standard `CrJsonWidget` displays all children as a simple ListView and performs poorly with huge JSONs.
  • Requires explicit height constraints when using `CrJsonRecyclerWidget`.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
CrJsonWidget(
  json: {
    'integer': 1,
    'string': 'test',
  },
)

Alternatives

Packages that do the same job and could replace cr_json_widget.

Works with

Packages commonly used together with cr_json_widget: ones it builds on, ones built on it, and its own family.