cr_json_widget
1.1.1, released 4 years ago by cleveroad.com
A Flutter widget that visualizes JSON data and tree structures.
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.
- flutter_simple_treeview
A widget that visualises a tree structure, where a node can be any widget.
30Compare - flutter_json
Renders valid JSON as an interactive hierarchical tree structure with lazy loading.
67Compare - flutter_tree_pro
Flutter widget for selectable tree structures with RTL support.
51Compare - recursive_tree_flutter
A tree-view package focusing on tree data structures and UI visualization.
55Compare
Works with
Packages commonly used together with cr_json_widget: ones it builds on, ones built on it, and its own family.