f_json_editor 1.0.3 copy "f_json_editor: ^1.0.3" to clipboard
f_json_editor: ^1.0.3 copied to clipboard

Json Editor and Json Viewer

f_json_editor #

FJSON Editor FJSON Editor

Getting started #

dependencies:
    f_json_editor: ^1.0.0

Usage #

import 'package:f_json_editor/f_json_editor.dart';

FJSONEditor(
    title: Text("FJSON Example"),
    actionCallback: (actionKey, jsonData) async {
        if(actionKey == "copy"){
            await Clipboard.setData(
            ClipboardData(text: jsonEncode(jsonData)),
            );
        }
    },
    topActions: [
        FJSONAction(
            key: "copy",
            icon: Icon(Icons.copy, size: 20),
            label: "Copyy"
        ),
        FJSONAction(
            key: "save",
            icon: Icon(Icons.save, size: 20),
            label: "Save"
        )
    ],
    isEditable: true,
    jsonData: {
        "key1":"value1",
        "key2":2,
        "key3": {
            "key4": "value4",
            "key5": false,
            "key6": [
                "1",
                "iki"
                ]
        }
    },
)

License #

@licence

Reference #

@SanjaySodani

1
likes
120
points
24
downloads

Publisher

verified publisheryusufugurlu.com

Weekly Downloads

Json Editor and Json Viewer

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, provider

More

Packages that depend on f_json_editor