laiiihz / json_view

A json preview package that has a not bad performance. lazy load json tree node that cause less jank. Support display large list json data like chrome dev tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

json_view

Pub Version Pub Popularity Pub Points Pub Publisher

A json preview package that has a not bad performance. lazy load json tree node that cause less jank. Support display large list json data like chrome dev tool.

./resources/preview.png

Highlight

  • πŸ‘‘ json type highlight.
  • πŸ”† lazy load large list & map.
  • πŸš€ not bad performance.
  • πŸ“¦ only depend on flutter.

Usage

  • simple usage
JsonView(json: data)
  • customize style
JsonConfig(
    /// your customize configuration
    data: JsonConfigData(
        animation: true,
        animationDuration: Duration(milliseconds: 300),
        animationCurve: Curves.ease,
        itemPadding: EdgeInsets.only(left: 8),
        color: JsonColorScheme(
            stringColor: Colors.grey,
        ),
        style: JsonStyleScheme(
            arrow: const Icon(Icons.arrow_right),
        )
    ),
    /// any widget will contain jsonView
    child: ...,
)

API reference

pub.dev/documentation

ROADMAP

  • add TESTS
  • override ListTile & MapTile didChangeDependencies

Some thing went wrong πŸ€”

create a new issue & welcome create a pull request

About

A json preview package that has a not bad performance. lazy load json tree node that cause less jank. Support display large list json data like chrome dev tool.

License:MIT License


Languages

Language:Dart 89.8%Language:HTML 7.5%Language:Swift 2.4%Language:Kotlin 0.3%Language:Objective-C 0.1%