Intento crear un formulario usando Flutter, tengo mi propio StatefulWidget que devuelve un formulario con 2 entradas (también intento con TextField) y un DropdownButton.
Cuando ejecuté la segunda entrada, mostré este error: 'Falta el alcance del enfoque'.
El código:
import 'package:flutter/material.dart'; class ContactFormView extends StatefulWidget { @override CreateFormViewState createState() => new CreateFormViewState(); } class CreateFormViewState extends State<ContactFormView> { GlobalKey<FormState> _formKey = new GlobalKey<FormState>(); @override Widget build(BuildContext context) { return new Scaffold( body: new Form( key: _formKey, child: new Column( children: <Widget>[ new Input( labelText: 'First Name', onChanged: (InputValue value) { // Logic here } ), new Input( labelText: 'Last Name', onChanged: (InputValue value) { // Logic here } ), new RaisedButton( child: new Text('SUBMIT'), onPressed: () { // Logic here }, ) ] ) ) ); } }Finalmente, el problema se solucionó en las próximas actualizaciones. Ahora mismo, puedes usar este widget sin problemas. https://docs.flutter.io/flutter/widgets/Form-class.html