json_editor_flutter 0.0.1 copy "json_editor_flutter: ^0.0.1" to clipboard
json_editor_flutter: ^0.0.1 copied to clipboard

Edit your JSON object with the help of this package. You can create new objects and delete the existing using this user friendly widget.

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'JSON Editor Example',
      home: JsonEditorExample(),
    );
  }
}

class JsonEditorExample extends StatelessWidget {
  const JsonEditorExample({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Padding(
        padding: const EdgeInsets.all(20),
        child: JsonEditor(
          height: 300,
          width: 350,
          onSaved: (value) {
            print(value);
          },
          json: const {
            'firstname': 'sanjay',
            'age': 24,
            'hobbies': ['dance', 'cricket'],
            'other': {
              'isGoodLooking': true,
            }
          },
        ),
      ),
    );
  }
}
22
likes
0
pub points
89%
popularity

Publisher

verified publishermakecv.in

Edit your JSON object with the help of this package. You can create new objects and delete the existing using this user friendly widget.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on json_editor_flutter