flutter_json_viewer_new

Features

本控件在flutter_json_viewer基础上,额外增加可

  • 使用JSONText替换原本的Text控件,同时传入value值,而不仅仅传显示的text值,使得可以对显示的text控件有更多操作的可能性。
  • JSONText添加双击可拷贝原始value值的操作,方便提取数据到其他地方掰扯(提取的数据会帮你转为标准的json格式)。
  • 优化更多警告问题

Use this package as a library on Dart dev

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:

flutter_json_viewer_new: ^0.0.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_json_viewer_new/flutter_json_viewer_new.dart';

4. Show it

Container(
    child: JsonViewer(jsonObj)
)