beautiful_forms 0.0.2 copy "beautiful_forms: ^0.0.2" to clipboard
beautiful_forms: ^0.0.2 copied to clipboard

Create beautiful forms with flutter example.

example/lib/main.dart

import 'package:beautiful_forms/builder/form_builder.dart';
import 'package:beautiful_forms/schema/form_schema.dart';
import 'package:flutter/material.dart';

FormSchema schema = FormSchema.fromJson({
  'accentColor': 0xfff3cd58,
  'fontFamily': 'Roboto',
  'initialRoute': '/',
  'pagesSchemas': [
    {'name': 'start', 'route': '/'},
    {'name': 'data', 'route': '/data'}
  ],
  'primaryColor': 0xff000000,
  'title': 'First Form',
  'image': 'assets/images/logo.png'
});

Future<void> main() async {
  runApp(FormBuilder.fromSchema(schema));
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Create beautiful forms with flutter example.

License

MIT (LICENSE)

Dependencies

flutter, json_annotation

More

Packages that depend on beautiful_forms