reactive_forms_generator 0.0.11-beta reactive_forms_generator: ^0.0.11-beta copied to clipboard
Generator for reactive_forms. Generates form classes based on model.
import 'package:example/routes/array_nullable_form.dart';
import 'package:example/routes/login_form.dart';
import 'package:example/routes/login_nullable_form.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class Routes {
static const login = '/login';
static const loginNullable = '/login-nullable';
static const arrayNullable = '/array-nullable';
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
routes: <String, WidgetBuilder>{
// Routes.login: (_) => LoginFormWidget(),
// Routes.loginNullable: (_) => LoginNullableFormWidget(),
Routes.arrayNullable: (_) => ArrayNullableFormWidget(),
},
home: ArrayNullableFormWidget(),
);
}
}