Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 893 Bytes

README.md

File metadata and controls

47 lines (34 loc) · 893 Bytes

JSEEN

Display JSON objects in a beautiful customizable flutter tree widget.

Check out the flutter web demo here: http://solid-throne.surge.sh/#/


Usage

Add dependency to pubspec.yaml

dependencies:
    jseen:

Import package

import 'package:jseen/jseen_tree.dart';

Use Widget

JSeenTree(
    json: '{"name":"Bob"}'
)

Customize

JSeenTree(
    json: '{"name":"Bob"}',
    indent: 20,
    errorWidget: Text('ERROR!!!'),
    theme: JSeenTheme(
        keyStyle: TextStyle(color: Colors.purple.shade200),
        stringStyle: TextStyle(color: Colors.yellow),
    ),
)