json_forms 1.0.1+7

Flutter Android iOS web

A Flutter package that generate the widgets corresponding to a form using a json file

example/main.dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:json_forms/json_forms.dart';

var json;
void main() {
  json = rootBundle.loadString("assets/exmaple.json");
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        body: JsonForm.fromJson(json, controller: JsonFormController()),
      )
    );
  }
}
0
likes
70
pub points
21%
popularity

A Flutter package that generate the widgets corresponding to a form using a json file

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

lecuivre.alban@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, json_annotation, provider

More

Packages that depend on json_forms