flutter_json_view 0.2.1 copy "flutter_json_view: ^0.2.1" to clipboard
flutter_json_view: ^0.2.1 copied to clipboard

outdated

Displaying json models in a Flutter widget with customization.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_json_view/flutter_json_view.dart';

void main() {
  runApp(JsonViewApp());
}

class JsonViewApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Json View',
      theme: ThemeData(
        primarySwatch: Colors.deepPurple,
      ),
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(title: Text('flutter_json_view 0.2.1')),
        body: Padding(
          padding: const EdgeInsets.all(10),
          child: JsonView.string(
            '{"author":{"name": "Stas", "lastName": "Ilin", "githubLogin": "Frezyx", "age": 19, "man": true, "height": 186.5}}',
          ),
        ),
      ),
    );
  }
}
126
likes
0
pub points
94%
popularity

Publisher

verified publisherfrezycode.com

Displaying json models in a Flutter widget with customization.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_json_view