json_schema_form 0.6.7 json_schema_form: ^0.6.7 copied to clipboard
A JSON Schema form. This widget will provide you a simple way to generate form from JSON Schema.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add json_schema_form
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
json_schema_form: ^0.6.7
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:json_schema_form/JSONSchemaForm.dart';
import 'package:json_schema_form/components/JSONForignKeyEditField.dart';
import 'package:json_schema_form/components/JSONForignKeyField.dart';
import 'package:json_schema_form/components/JSONSelectField.dart';
import 'package:json_schema_form/components/JSONTextFormField.dart';
import 'package:json_schema_form/components/SelectionPage.dart';
import 'package:json_schema_form/models/Action.dart';
import 'package:json_schema_form/models/Icon.dart';
import 'package:json_schema_form/models/Schema.dart';
import 'package:json_schema_form/utils.dart';