FLUTTER ECOSYSTEM

laiiihz/json_view

一個性能不錯的 JSON 預覽套件。懶加載 JSON 樹節點,減少卡頓。支援像 Chrome 開發者工具一樣顯示大型列表 JSON 資料。

json_view 專案封面
Stars
10
Forks
5
最近推送(UTC)
2023年6月13日
專案狀態
未封存
LAIIIHZ GitHub avatar
GITHUB User

LAIIIHZ ↗

flutter & dart developer

hangzhou,China
語言DartHTMLSwiftKotlinObjective-C

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • flutter{"sdk":"flutter"}
  • flutter_lints開發依賴^2.0.1
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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