Skip to content
pubscout

json_table

2.0.1, released 6 years ago by ayushpgupta.com

A Flutter package to directly render tables from JSON maps.

WASM-ready
$ flutter pub add json_table
Source repository

What it does

Provides a JsonTable widget that displays JSON data in a table format with support for vertical and horizontal scrolling, column toggling, pagination, row highlighting, and custom cell/header builders.

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

Use it when

  • You need to quickly display JSON data in a tabular format without manually defining every UI cell layout
  • You want built-in table features like pagination, row selection, and column toggling

Skip it when

  • You require complex, highly customized native data grids with advanced sorting and filtering
  • Your dataset is massive and requires advanced virtualization beyond simple pagination

Strengths

  • Directly renders JSON maps into tables with minimal setup
  • Supports nested data structures using dot notation
  • Includes built-in pagination, column toggling, and row selection callbacks

Weaknesses

  • Not built on top of Flutter's native DataTable widget, which may limit deep integration with native table semantics
  • Limited to basic table viewing and pagination features

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
final String jsonSample = '[{"id":1},{"id":2}]';
var json = jsonDecode(jsonSample);

JsonTable(json);