Skip to content

jinyus/jseen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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),
    ),
)