Skip to content

mayankkushal/flutter_json_viewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_json_viewer

A Json viewer widget for flutter. Updated with null safety and added support for Array in the root level.

Forked from flutter_json_widget

Using the library

The /example/ folder in the GitHub repo

contains a full Flutter app with demo examples.

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: ^1.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/flutter_json_viewer.dart';

4. Show it


Container(
    child: JsonViewer(jsonObj)
)

Demo

Demo

About

A widget to show json object

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 73.1%
  • HTML 17.0%
  • Swift 5.3%
  • Shell 2.8%
  • Kotlin 1.6%
  • Objective-C 0.2%